Opened 13 years ago

Closed 10 years ago

#29057 closed defect (fixed)

python27: tries to install in /Applications on non-root macports

Reported by: jaime@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), abdullahfy@…, jmroot (Joshua Root)
Port: python27

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi,
I am using a computer without root access, thus I have my own local macports installation. I compiled Macports from sources with the following options:

  PATH=/usr/bin:/usr/sbin:/bin:/sbin ./configure \
  --prefix=/mn/xsan/d9/jaime/ports \
  --enable-readline \
  --with-install-user=`id -un` \
  --with-install-group=`id -gn` \
  --x-includes=/usr/X11R6/include \
  --x-libraries=/usr/X11R6/lib \
  --with-tclpackage=/mn/xsan/d9/jaime/ports/share/macports/Tcl \
  --with-frameworks-dir=/mn/xsan/d9/jaime/Applications \
  --with-applications-dir=/mn/xsan/d9/jaime/Library \
  --with-no-root-privileges \
  --with-macports-user=`id -un`

In general I have managed to compile almost every package that I needed successfully until I tried with python2.7. It compiles fine, but when the port is being activated, it complains about not having access to /Applications (which should not be used at all!):

--->  Activating python27 @2.7.1_1
Error: Target org.macports.activate returned: can't create directory "/Applications/Python 2.7": permission denied

I would appreciate any help regarding this issue!

Cheers

Change History (6)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to jwa@…
Port: python27 added
Summary: Python2.7 on non-root macports: tries to install in /Applicationspython27: tries to install in /Applications on non-root macports

On my system, python27 respects ${applications_dir} properly. Are you sure applications_dir is set to your desired value in macports.conf?

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Seems like the opposite problem to #26456. Which is odd since the port hasn't been significantly changed since then.

Incidentally, you appear to have mixed up your --with-applications-dir and --with-frameworks-dir configure args. And do you really want to install frameworks straight into Library rather than Library/Frameworks?

comment:3 Changed 13 years ago by jaime@…

Hi, Upps, yes I realize that I have mixed up those two but it should not matter in this case (it is just the name of a directory).

In my macports.conf:

applications_dir /mn/xsan/d9/jaime/Library frameworks_dir /mn/xsan/d9/jaime/Applications

Cheers, Jaime

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

comment:5 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: abdullahfy@… jmr@… added
Resolution: fixed
Status: closedreopened

Resurfaced in #42413.

comment:6 Changed 10 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed

Still seems fixed to me.

Note: See TracTickets for help on using tickets.