Hello, I'm new to MacPorts and have a question regarding install of MacPorts: How do I correct the PATH to point to the MacPorts path? I combined my .bash_login AND .bash_profile into .profile as instructed and also tried deleting them and leaving only .profile, but the PATH will not report the MacPorts path files: .bash_login: export PATH="/usr/local/bin:/usr/local/sbin:$PATH" .bash_profile: export PATH=/usr/local/mysql/bin:$PATH # Setting PATH for MacPython 2.5 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}" export PATH combined into .profile: ## # DELUXE-USR-LOCAL-BIN-INSERT # (do not remove this comment) ## echo $PATH | grep -q -s "/usr/local/bin" if [ $? -eq 1 ] ; then PATH=$PATH:/usr/local/bin export PATH fi # # Your previous .profile (if any) is saved as .profile.mpsaved # Setting the path for MacPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH export DISPLAY=:0.0 export PATH=/usr/local/mysql/bin:$PATH # Setting PATH for MacPython 2.5 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}" export PATH export PATH="/usr/local/bin:/usr/local/sb Thanks for any help with this, Jason
Jason Nerida wrote:
Hello,
I'm new to MacPorts and have a question regarding install of MacPorts:
How do I correct the PATH to point to the MacPorts path?
MacPorts is located in /opt/local/bin; add that directory to your path. -- Kevin Walzer Code by Kevin http://www.codebykevin.com
On Sep 19, 2007, at 10:22 PM, Jason Nerida wrote:
Hello,
I'm new to MacPorts and have a question regarding install of MacPorts:
How do I correct the PATH to point to the MacPorts path?
I combined my .bash_login AND .bash_profile into .profile as instructed and also tried deleting them and leaving only .profile, but the PATH will not report the MacPorts path
files:
.bash_login:
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
.bash_profile:
export PATH=/usr/local/mysql/bin:$PATH
# Setting PATH for MacPython 2.5 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:$ {PATH}" export PATH
combined into .profile:
## # DELUXE-USR-LOCAL-BIN-INSERT # (do not remove this comment) ## echo $PATH | grep -q -s "/usr/local/bin" if [ $? -eq 1 ] ; then PATH=$PATH:/usr/local/bin export PATH fi # # Your previous .profile (if any) is saved as .profile.mpsaved # Setting the path for MacPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH export DISPLAY=:0.0
export PATH=/usr/local/mysql/bin:$PATH
# Setting PATH for MacPython 2.5 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:$ {PATH}" export PATH
export PATH="/usr/local/bin:/usr/local/sb <--------------------NOTE
Thanks for any help with this,
Jason
See note above. Is this line complete as shown? if so thats your problem, since it trashes all done before.
Jason, I reckon that your problems will be solved by fixing the last "export PATH". Unless it's a typo in your email, it appears that you forgot the ":$PATH" at the end of your last export PATH. There's a priority in the ordering that's normally not super-critical. In your case, if you want MacPython to be used instead of other installed Pythons, that requires MacPython to be at the front of the PATH variable. The same is true regarding MySQL. FYI. HTH On 9/19/07, Jason Nerida <neridaj@gmail.com> wrote:
Hello,
I'm new to MacPorts and have a question regarding install of MacPorts:
How do I correct the PATH to point to the MacPorts path?
I combined my .bash_login AND .bash_profile into .profile as instructed and also tried deleting them and leaving only .profile, but the PATH will not report the MacPorts path
files:
.bash_login:
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
.bash_profile:
export PATH=/usr/local/mysql/bin:$PATH
# Setting PATH for MacPython 2.5 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}" export PATH
combined into .profile:
## # DELUXE-USR-LOCAL-BIN-INSERT # (do not remove this comment) ## echo $PATH | grep -q -s "/usr/local/bin" if [ $? -eq 1 ] ; then PATH=$PATH:/usr/local/bin export PATH fi # # Your previous .profile (if any) is saved as .profile.mpsaved # Setting the path for MacPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH export DISPLAY=:0.0
export PATH=/usr/local/mysql/bin:$PATH
# Setting PATH for MacPython 2.5 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}" export PATH
export PATH="/usr/local/bin:/usr/local/sb
Thanks for any help with this,
Jason _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
participants (4)
-
Jason Nerida
-
Kevin Walzer
-
Lorin Rivers
-
William Davis