In attempting to install MacPorts, I've run into a little problem. Since I already have Fink on my system, the latest 10.4 developer tools and X11 had been installed earlier. I downloaded and installed the MacPorts binary, and then using pico, opened and edited the ~./ profile and it now looks like this:
# Your previous .profile (if any) is saved as .profile.dpsaved # Setting the path for DarwinPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH export DISPLAY=:O.O
However, when I run the env command, I get this:
PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin SECURITYSESSIONID=51d020 HOME=/Users/jamescoy SHELL=/bin/tcsh USER=jamescoy __CF_USER_TEXT_ENCODING=0x1F5:0:0 TERM_PROGRAM=Apple_Terminal TERM_PROGRAM_VERSION=133 TERM=xterm-color LOGNAME=jamescoy HOSTTYPE=powermac VENDOR=apple OSTYPE=darwin MACHTYPE=powerpc SHLVL=1 PWD=/Users/jamescoy GROUP=staff HOST=James-Coyles-iBook.local MANPATH=/sw/share/man:/usr/share/man:/usr/X11R6/man:/sw/lib/ perl5/5.8.6/man:/sw/lib/perl5-core/5.8.1/man:/sw/lib/perl5/5.8.1/man INFOPATH=/sw/share/info:/sw/info:/usr/share/info PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin XML_CATALOG_FILES=/sw/etc/xml/catalog SGML_CATALOG_FILES=/sw/etc/sgml/catalog
As you can see, the PATH does not display as per the instructions. Is that because of Fink being on my system or.....what's the deal? Thanks!
On 29 Dec 2006, at 14:07:46, James Coyle wrote:
In attempting to install MacPorts, I've run into a little problem.
Since I already have Fink on my system, the latest 10.4 developer tools and X11 had been installed earlier. I downloaded and installed the MacPorts binary, and then using pico, opened and edited the ~./profile and it now looks like this:
# Your previous .profile (if any) is saved as .profile.dpsaved # Setting the path for DarwinPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH export DISPLAY=:O.O
However, when I run the env command, I get this:
PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin SECURITYSESSIONID=51d020 HOME=/Users/jamescoy SHELL=/bin/tcsh USER=jamescoy __CF_USER_TEXT_ENCODING=0x1F5:0:0 TERM_PROGRAM=Apple_Terminal TERM_PROGRAM_VERSION=133 TERM=xterm-color LOGNAME=jamescoy HOSTTYPE=powermac VENDOR=apple OSTYPE=darwin MACHTYPE=powerpc SHLVL=1 PWD=/Users/jamescoy GROUP=staff HOST=James-Coyles-iBook.local MANPATH=/sw/share/man:/usr/share/man:/usr/X11R6/man:/sw/lib/ perl5/5.8.6/man:/sw/lib/perl5-core/5.8.1/man:/sw/lib/perl5/5.8.1/man INFOPATH=/sw/share/info:/sw/info:/usr/share/info PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin XML_CATALOG_FILES=/sw/etc/xml/catalog SGML_CATALOG_FILES=/sw/etc/sgml/catalog
As you can see, the PATH does not display as per the instructions. Is that because of Fink being on my system or.....what's the deal? Thanks!
I ran into similar problems without Fink being installed. I found that I had to change the file name to ~./.bash_profile to get consistent results. Also, as I tend to use an X Terminal instead of the Apple Terminal, I discovered that I needed to add the "-ls" switch to the ~./.xinitrc file and the X11 Terminal application. Merton Campbell Crockett m.c.crockett@adelphia.net
Merton Campbell Crockett <m.c.crockett@adelphia.net> on Friday, December 29, 2006 at 3:07 PM -0800 wrote:
I ran into similar problems without Fink being installed. I found that I had to change the file name to ~./.bash_profile to get consistent results. Also, as I tend to use an X Terminal instead of the Apple Terminal, I discovered that I needed to add the "-ls" switch to the ~./.xinitrc file and the X11 Terminal application.
Do you have multiple shell profiles? In the MacPorts install instructions after editing the .profile, I put this in the Important Notes: Other profile files may conflict with ~./profile and should be removed, so remove any occurrances of these files: ~/.bash_login ~/.bash_profile That was my stab at anticipating problems. I'm not entirely sure it is correct, but it seems like a bad idea to have more than one and I'm not sure the order of precedence if these files are present in addition to ~/.profile. Mark
On 29 Dec 2006, at 15:46:01, Mark Duling wrote:
Merton Campbell Crockett <m.c.crockett@adelphia.net> on Friday, December 29, 2006 at 3:07 PM -0800 wrote:
I ran into similar problems without Fink being installed. I found that I had to change the file name to ~./.bash_profile to get consistent results. Also, as I tend to use an X Terminal instead of the Apple Terminal, I discovered that I needed to add the "-ls" switch to the ~./.xinitrc file and the X11 Terminal application.
Do you have multiple shell profiles? In the MacPorts install instructions after editing the .profile, I put this in the Important Notes:
Other profile files may conflict with ~./profile and should be removed, so remove any occurrances of these files: • ~/.bash_login • ~/.bash_profile
That was my stab at anticipating problems. I'm not entirely sure it is correct, but it seems like a bad idea to have more than one and I'm not sure the order of precedence if these files are present in addition to ~/.profile.
I'm not sure when I noticed that the contents of ~/.profile were not being incorporated into my environment. It may have been just after upgrading to Mac OS X 10.4 or after one of the upgrades that have been released. It didn't become a real issue until I attempted to upgrade Ethereal to analyze a network problem. I wanted to have the same environment and behaviour whether I used Apple Terminal or an X11 xterm. To achieve that goal, I found that I needed to have a ~/.bash_profile. I incorporated the DarwinPorts' ~./ profile contents into the ~/.bash_profile to eliminate the problems that I was having. As you note, the ~./profile file will be ignored when ~/.bash_profile exists. Merton Campbell Crockett m.c.crockett@adelphia.net
Sorry, still confused here, but I'm wondering if I've hit on something here. Note these instructions from the web site:
If you are using Mac OS X 10.3 "Panther", Mac OS X 10.4 "Tiger" or a Bourne shell (bash, zsh), add the following line to your ~/.profile:
export PATH=$PATH:/opt/local/bin
If you are using Mac OS X 10.2 "Jaguar" or a C shell (tcsh), add the following line to your ~/.cshrc:
set path=($path /opt/local/bin)
Since Tiger (OS10.4) includes a tcsh shell rather than the old bash shell, should this edit cure the problem? I'm reluctant to edit this file before I know because it relates to my Fink setup and I'm a novice. Thanks. On Dec 29, 2006, at 6:46 PM, Mark Duling wrote:
Merton Campbell Crockett <m.c.crockett@adelphia.net> on Friday, December 29, 2006 at 3:07 PM -0800 wrote:
I ran into similar problems without Fink being installed. I found that I had to change the file name to ~./.bash_profile to get consistent results. Also, as I tend to use an X Terminal instead of the Apple Terminal, I discovered that I needed to add the "-ls" switch to the ~./.xinitrc file and the X11 Terminal application.
Do you have multiple shell profiles? In the MacPorts install instructions after editing the .profile, I put this in the Important Notes:
Other profile files may conflict with ~./profile and should be removed, so remove any occurrances of these files: • ~/.bash_login • ~/.bash_profile
That was my stab at anticipating problems. I'm not entirely sure it is correct, but it seems like a bad idea to have more than one and I'm not sure the order of precedence if these files are present in addition to ~/.profile.
Mark
On Jan 3, 2007, at 19:54, James Coyle wrote:
Sorry, still confused here, but I'm wondering if I've hit on something here. Note these instructions from the web site:
If you are using Mac OS X 10.3 "Panther", Mac OS X 10.4 "Tiger" or a Bourne shell (bash, zsh), add the following line to your ~/.profile:
export PATH=$PATH:/opt/local/bin
If you are using Mac OS X 10.2 "Jaguar" or a C shell (tcsh), add the following line to your ~/.cshrc:
set path=($path /opt/local/bin)
Since Tiger (OS10.4) includes a tcsh shell rather than the old bash shell, should this edit cure the problem? I'm reluctant to edit this file before I know because it relates to my Fink setup and I'm a novice.
James, that's not correct. In Mac OS X up to and including 10.2.x, tcsh was the default shell. In 10.3.0 and later, bash is the default shell. But if you used Mac OS X 10.2.x or earlier and upgraded to 10.3.0 or later, then your user accounts will still be using tcsh instead of bash. On any version of the OS you can change which shell you use by using NetInfo Manager. Go to users > your username, click the lock to unlock it to make changes (supply an admin username and password), scroll down to the entry for "shell", and set it to either /bin/bash or /bin/tcsh as you prefer. See also this Apple Knowledge Base article, which has a different solution: http://docs.info.apple.com/article.html?artnum=86135 So the information from the web site you quoted is correct. Instructions are provided for what file you should edit and what content you should enter depending on what kind of shell you use. So type "echo $SHELL" to see what shell you use, and follow the relevant instructions from those you quoted above.
participants (4)
-
James Coyle
-
Mark Duling
-
Merton Campbell Crockett
-
Ryan Schmidt