Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Set up DarwinPorts to coexist with fink' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set up DarwinPorts to coexist with fink
Authored by: Trusted Content on Jan 14, '04 01:20:04AM
Ermmm, there's a much simpler way of going about this. When DarwinPorts's configure script is looking for tclsh, it will pick the first one in its path. Since you will, at some point, have to add /opt/local/bin (or whever you choose to install dports binaries) to your path, do that first, and throw it at the beginning of your path. Then, symlink the proper tclsh into /opt/local/bin, i. e.
sudo ln -sf /usr/bin/tclsh /opt/local/bin/
Then DarwinPorts's configure will automatically pick the right tclsh as it falls first in the path. Of course, to get the path right, I always use my trusted /etc/profile (works if you are using bash, which you probably will be if you are using Panther):

# System-wide .profile for sh(1)

PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
TERM="xterm-color"

export PATH TERM

[ -r /etc/bashrc ] && source /etc/bashrc && source /sw/bin/init.sh

PATH="/opt/local/bin:$PATH"

export PATH
Problem solved :)

[ Reply to This | # ]
Set up DarwinPorts to coexist with fink
Authored by: clith on Jan 14, '04 09:43:42AM
Just to be pedantic, you should check for the existance of /sw/bin/init.sh before sourcing it (in case you uninstall fink at some point). Also, you only need to export variables once, and I find it easier to put it on the same line as the var assignment...
# System-wide .profile for sh(1)

export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
export TERM="xterm-color"

[ -r /etc/bashrc ] && source /etc/bashrc
[ -r /sw/bin/init.sh] && source /sw/bin/init.sh

[ -d /opt/local/bin ] && PATH="/opt/local/bin:$PATH"


[ Reply to This | # ]
Set up DarwinPorts to coexist with fink
Authored by: xcode on Jul 01, '04 11:52:12PM

Hi
I followed the two above hints and for a while they worked fine then the man pages for all dawinports installs disappeared, has anyone else experienced this problem? Also what little knowledge I have of the bash shell tells me that a better sytax for PATH="/opt/local/bin:$PATH" is PATH=$PATH":/opt/local/bin"



[ Reply to This | # ]