dorus - Jun 23, 2005 - 2:13 pm
Hi all,
I have downloaded and installed Darwinports (to get an image processing program I am interested in), and now need to configure my G5 Mac (system 10.3.9) to find it. Apparently, this requires adding one or more lines to a ~/.profile file in my home directory. I'm not sure how to do this. I tried creating a new blank file in Xtools, and saved it as .profile after first typing in the ~, but I'm not sure where the file ended up. Anyhoo, when I go to Terminal and type
sudo port -d selfupdate
it asks for my password and then says 'port, command not found'.
Any help is greatly appreciated. How do I edit or create .profile, and where should this file be found or saved to?
Dorus
tubajensen - Jun 24, 2005 - 2:28 pm
Marnix,
first of all you won't be able to "see" your .profile because of the "." which makes this file invisible in the Finder. You can however check to see if it exists by opening Terminal and typing
ls -a
and hitting the return key. It should appear somewhere in the list that shows up.
To edit (or create) this file type
cd
and hit return. Now type
sudo pico .profile
and hit return. Then type the following:
export PATH=$PATH:/opt/local/bin
and save the file by pressing ctrl-x and answering yes to "Save modified buffer".
You should also check out this page:
http://darwinports.opendarwin.org/docs/ch01s03.html
especially the part called "Configuring for DarwinPorts"
-------
Did this answer your question(s)?
Allan
dorus - Jun 24, 2005 - 2:49 pm
Thanks Allen, that looks easy enough. I'll try this when I get home tonight.
Appreciate the feedback!
dorus - Jun 28, 2005 - 3:24 pm
Hi Allen (or anyone else who cares to respond),
I followed your suggestion: the .profile file showed up with the
ls -a
command, and already had the appropriate line in it (I had created that file earlier). Thinking it may have been in the wrong place, I deleted it and recreated one using the
pico ~/.profile
command line, with the 'export PATH=$PATH:/opt/local/bin' line in it. I also reinstalled Darwinports using cvs, and that went through the configure and make commands without errors. The directory structure shows it's in place.
The I opened a new shell in Terminal, and typed
port list
to which the system responded with 'port: command not found"
So I'm right back to where I was before. I'm thinking I could probably do:
cd opt/local/bin
and then use the port command, but that shouldn't be necessary with the 'export PATH=$PATH:/opt/local/bin' line in my profile.
Any way you can help me sort this out further?
Thanks.
Marnix
tubajensen - Jun 28, 2005 - 5:47 pm
Actually, I don't use .profile. I use .bash_profile. So you could try to delete the .profile and edit/create the .bash_profile by typing:
sudo pico ~/.bash_profile
and add the line:
export PATH=$PATH:/opt/local/sbin
to it. At least this works for me.
-------
Did this answer your question(s)?
Allan
dorus - Jun 29, 2005 - 11:59 am
Hi Allan, I finally figured it out. Although my system is running 10.3.9, apparently I needed to add a line to a .cshrc file [set path=($path /opt/local/bin)]. This is typically suggested for installing Darwinports under system 10.2, but apparently works under 10.3.9 as well.
Now I'm off to installing the GIMP (need first to do GTK+, libraries, etc.). This better be worth it!
Thanks for the help.
Marnix
tubajensen - Jun 29, 2005 - 2:49 pm
That sounds good. There are different ways to install GIMP on Mac OS X:
http://www.gimp.org/macintosh/
One doesn't even need DarwinPorts. But it's still good to have for other things.
-------
Did this answer your question(s)?
Allan