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

