Hello, I only tried to install macports today and don't understand much in the mails i read here, so maybe I should first do some more reading, but any help would be appreciated a lot. I have mac os x 10.4.11, installed xcode and macports, but i cannot find any .profile file. ls -a gives: . .openoffice.org2 .. .recently-used .CFUserTextEncoding .thumbnails .DS_Store Adobe SVG 3.0 Installer Log .Kanton ZH Applications .Trash Desktop .Xauthority Documents .bash_history Library .config Movies .dvdcss Music .fonts.cache-1 Pictures .gimp-2.2 Public .gnome2 Registrierung senden .inkscape Sites .inkscape-etc test .macports env gives: TERM_PROGRAM=Apple_Terminal TERM=xterm-color SHELL=/bin/bash TERM_PROGRAM_VERSION=133 XRE_IMPORT_PROFILES= XRE_PROFILE_LOCAL_PATH= USER=fra XRE_START_OFFLINE= __CF_USER_TEXT_ENCODING=0x1F5:0:3 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin-current PWD=/Users/fra XRE_PROFILE_PATH= SHLVL=1 HOME=/Users/fra LOGNAME=fra MOZ_LAUNCHED_CHILD= NO_EM_RESTART= XRE_BINARY_PATH= XUL_APP_FILE= SECURITYSESSIONID=80fc70 _=/usr/bin/env There is a profile file in /private/etc (but it has no dot in front), should i modify that one? Also, i don't understand this long PATH ( /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin-current ) David
Hi David, Yes, the file you found in /private/etc is the default and there is no profile listed in your home directory. I found it best to copy the default into my home directory and then alter it accordingly (ie. call it .bashrc or .bash_profile). The profile in the home directory will append the one in /private/etc (I believe). To properly locate macports add the following line to your profile: export PATH="$PATH:/opt/local/bin:/opt/local/sbin" Hope that helps, Cheers On January 27, 12:56 pm "David Meili" <dmeili@gmail.com> wrote:
Hello,
I only tried to install macports today and don't understand much in the mails i read here, so maybe I should first do some more reading, but any help would be appreciated a lot.
I have mac os x 10.4.11, installed xcode and macports, but i cannot find any .profile file. ls -a gives: . .openoffice.org2 .. .recently-used .CFUserTextEncoding .thumbnails .DS_Store Adobe SVG 3.0 Installer Log .Kanton ZH Applications .Trash Desktop .Xauthority Documents .bash_history Library .config Movies .dvdcss Music .fonts.cache-1 Pictures .gimp-2.2 Public .gnome2 Registrierung senden .inkscape Sites .inkscape-etc test .macports env gives: TERM_PROGRAM=Apple_Terminal TERM=xterm-color SHELL=/bin/bash TERM_PROGRAM_VERSION=133 XRE_IMPORT_PROFILES= XRE_PROFILE_LOCAL_PATH= USER=fra XRE_START_OFFLINE= __CF_USER_TEXT_ENCODING=0x1F5:0:3 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin-current
PWD=/Users/fra XRE_PROFILE_PATH= SHLVL=1 HOME=/Users/fra LOGNAME=fra MOZ_LAUNCHED_CHILD= NO_EM_RESTART= XRE_BINARY_PATH= XUL_APP_FILE= SECURITYSESSIONID=80fc70 _=/usr/bin/env
There is a profile file in /private/etc (but it has no dot in front), should i modify that one? Also, i don't understand this long PATH ( /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin-current
)
David
On Jan 27, 2008, at 4:26 PM, David Meili wrote:
Hello,
I only tried to install macports today and don't understand much in the mails i read here, so maybe I should first do some more reading, but any help would be appreciated a lot.
I have mac os x 10.4.11, installed xcode and macports, but i cannot find any .profile file.
If you installed MacPorts off any of our 1.6.0 pkg installers, then you experienced a known bug in the script that's supposed to set up your shell environment for the use with MacPorts: a shell type is not detected and therefore no actions are taken. Easiest way around it is to download the new one and run it manually: curl -O http://svn.macports.org/repository/macports/branches/release_1_6/base/portmg... && sudo ./postflight This will give you a MacPorts compatible environment by setting up your PATH, MANPATH and DISPLAY environment variables (you can read about how we do that at http://guide.macports.org/#installing.shell). Please do let me know if you experience any problems, in which case sending me a compressed copy of your /var/log/install.log file would help a great deal. Regards,.. -jmpp
Juan Manuel Palacios wrote:
curl -O http://svn.macports.org/repository/macports/branches/release_1_6/base/portmg... && sudo ./postflight
I think you have to do chmod +x postflight before you are able to execute it. Rainer
On Jan 27, 2008, at 9:26 PM, Rainer Müller wrote:
Juan Manuel Palacios wrote:
curl -O http://svn.macports.org/repository/macports/branches/release_1_6/base/portmg... && sudo ./postflight
I think you have to do chmod +x postflight before you are able to execute it.
Rainer
Sure do, don't know what that jmpp dude was thinking! ;-) -jmpp
On Jan 27, 2008, at 17:57, <kakuda@engineering.ucsb.edu> <kakuda@engineering.ucsb.edu> wrote:
Yes, the file you found in /private/etc is the default and there is no profile listed in your home directory. I found it best to copy the default into my home directory and then alter it accordingly (ie. call it .bashrc or .bash_profile). The profile in the home directory will append the one in /private/etc (I believe).
That seems to be correct. /etc/profile is run first, then ~/.bashrc or ~/.bash_profile if it exists (I'm not sure in what order of preference).
To properly locate macports add the following line to your profile: export PATH="$PATH:/opt/local/bin:/opt/local/sbin"
We recommend you place /opt/local/bin and /opt/local/sbin before, not after, your existing path. http://guide.macports.org/#installing.shell
participants (5)
-
David Meili
-
Juan Manuel Palacios
-
kakuda@engineering.ucsb.edu
-
Rainer Müller
-
Ryan Schmidt