Set up DarwinPorts to coexist with fink
Jan 13, '04 10:50:00AM
Contributed by: Anonymous
I'm sure many people on this list, including myself, are huge fans of Fink. Unfortunately, there is much UNIX software missing from its listings. I've found that often DarwinPorts fills the gaps of Fink (for example, it has 3 POP/IMAP servers to fink's 0, and qpopper was very easy to get working). Unfortunately, it is much harder to set up than fink.
Here are the steps I had to go through, noting that I assume permissions are set up correctly:
- Disable Fink: Comment out "source /sw/bin/init.csh" from .cshrc (or .bashrc). DarwinPorts uses PATH to decide which program it uses, but unfortunately fink's tclsh caused me problems. It might be easier to just change PATH.
- Check out the source from cvs (The following is from their Get DarwinPorts guide):
cd ${PROGRAM_FOLDER}
cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od login
cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -P darwinports
- Build DarwinPorts:
cd ${PROGRAM_FOLER}/darwinports/base
./configure
make
sudo make install
- (Optional) Put the package listing in a global location so all users can use DarwinPorts:
cd ${PROGRAM_FOLER}/darwinports
cp -R dports /opt/local/dports
- (Optional) Edit /etc/ports/sources.conf. It should contain the line:
file:///opt/local/dports
- Double check that we are using the right tclsh: In one case it used /sw/bin/tclsh, even though I commented out fink. You should double check the files port, portall, portindex in /opt/local/bin to make sure that they start with the line "#!/usr/bin/tclsh".
- Add /opt/local/bin to your path.
- It should work. Try typing sudo port install PortsManager. This will install a GUI for DarwinPorts in /Utilities.
- Reenable Fink. Fink and DarwinPorts should coexist fine, now that all the port code points to #!/usr/bin/tclsh.
- To check for new/updated packages:
cd /opt/local/dports
cvs update -d
Yes, this is much more difficult process than fink, but if you need the extra packages and don't want to manage them by hand, I would say its worth the effort.
Comments (13)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20031221042554999