3 ms·
How do you install macports?
I'm stumped right were I'm supposed to mess around with the .profile thing.
I've looked at http://www.nabble.com/%22port:-command-not-found%22-after-installing-MacPorts-1.6.0-10.5-Leopard.dmg-td15348745.html, but can't figure it out. I created a .profile ($ touch ~/.profile) but have no idea were to go from there. What terminal commands should I do?
- elq 19y agowell... your shell is probably ignoring .profile. I think the default shell under osx is now bash, so look for a file called .bashrc, and if it exists add the settings from .profile in there (or you can just source .profile from your bashrc).
- tlrobinson 19y agoNo, bash will also use .profile
- tlrobinson 19y agoJust like that nabble page says, add the following to your .profile using a text editor: export PATH=/opt/local/bin:/opt/local/sbin:$PATH
- daniel-cussen 19y agoAnd how do I do that? Where is this .profile?
- elq 19y agoumm.. you'll have quite a learning curve ahead of you, but preserver. open up terminal.app and type - >ls .profile You should see a response like - eric@quark:~>ls .profile .profile eric@quark:~> this means that the file ".profile" exists. If instead you get something like - eric@quark:~>ls .profile ls: .profile: No such file or directory eric@quark:~> Then you should type - >touch .profile this will create the file with no contents. Next type - >open .profile (I assume you don't know about vi, so TextEdit.app will have to do for now). Paste in the macports environment settings, save, and open a new terminal window. macports should now work.
- deleted 19y ago[deleted]
- daniel-cussen 19y agoI got it to work. Macports on Tiger walkthrough: 1) Install Macports from macports.org, and open the box icon that ends in .pkg. 2) Open the terminal. 3) Paste [touch .profile]. Don't paste the brackets, just what is inside. press return. 4) Paste [open -a TextEdit ~/.profile], press return. A text file will open. 5) Paste [ export PATH=/opt/local/bin:/opt/local/sbin:$PATH export MANPATH=/opt/local/share/man:$MANPATH export DISPLAY=:0.0 ] in the file. Save it and close it. 6) Paste [. .profile]. Press return. 7) Paste [sudo port -d selfupdate]. Press return. The computer will ask you for your password; give it and press return. 8) Wait for about three minutes. The terminal will act weird and will be busy updating macports. When it's done, you can use macports by pasting [port search sbcl] to search Steel Bank Common Lisp. You can install by pasting [sudo port install sbcl]. Then you can get on with your startup and take on the world.
- tlrobinson 19y agoSigh. Read up on how to use the Unix/Linux command line. I guess I take it for granted. ~ signifies your home directory, thus ~/.profile is in your home directory, which is the default directory all Terminals start in. "nano" is a simple command line based text editor. Try "nano ~/.profile" Or use the "open" command to open it in a GUI text editor like TextEdit: "open -a TextEdit ~/.profile" (replace TextEdit with the name of your favorite text editor) Honestly, if you can't figure this out then I don't think MacPorts will be very useful to you. And I don't think Hacker News is the place to get this kind of support.
- rms 19y agoThis also isn't a place to be elitist.