Error Port Not Found Mac
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About
Macports Port Command Not Found
Us Learn more about Stack Overflow the company Business Learn more about hiring developers port command not found el capitan or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question
Sudo Port Command Not Found El Capitan
and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers zsh: command not found: port are voted up and rise to the top “sudo: port: command not found” after installing MacPorts on Snow leopard up vote 12 down vote favorite 7 I have attempted to install MacPorts in order to upgrade my Rails version so that I can work my way through Agile Web Development with Rails, PragProg (4th, 2011). I have followed the directions in the book, as well as on the macports for el capitan MacPorts web site, to perform the install from disk image. It appeared to install correctly, however, running port commands afterwards returned "port: command not found". I searched Stack Exchange and found this question, so I attempted to install from the command line using "tar xjvf MacPorts-1.9.2.tar.bz2". Again, the install seems to work. I receive the confirmation that MacPorts installed successfully, but I still receive "sudo: port: command not found" error on trying to selfupdate MacPorts (via "sudo port -v selfupdate"). I think that my error lies in not having the correct path set. I followed the advice in this thread, namely, adding a path (/opt/local) in paths.d, but I still get the error. If it matters, terminal is set to open shells with default login shell (/usr/bin/login). Should I change this to /bin/bash? So, is this a MacPorts issue, a $PATH issue, or a StupidUser issue? mac osx-snow-leopard path macports share|improve this question asked May 24 '11 at 0:10 freerangemonkey 63114 add a comment| 3 Answers 3 active oldest votes up vote 24 down vote accepted It is probably a PATH issue. By default port is installed the directory /opt/local/bin. Add the path 'opt/local/bin' as an extra line to t
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us
Port Imagemagick Not Found
Learn more about Stack Overflow the company Business Learn more about hiring developers error: insufficient privileges to write to macports install prefix. or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow
Install Macports El Capitan
Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up sudo: port: command not found up vote 38 http://superuser.com/questions/287713/sudo-port-command-not-found-after-installing-macports-on-snow-leopard down vote favorite 12 I recently uninstalled Xcode 4.2 and re-installed Xcode 4.3.1. Command Line Tools are installed. I then installed MacPort using “dmg” disk images for Lion from macports.org. Since, I was getting sudo: port: command not found after every use of port, I followed this and this post to create a .bash_profile file(wasn't present earlier) and then put in it the following but to no http://stackoverflow.com/questions/9694395/sudo-port-command-not-found avail. export PATH=$PATH:/opt/local/bin export MANPATH=$MANPATH:/opt/local/share/man export INFOPATH=$INFOPATH:/opt/local/share/info Following this post ➜ ~ git:(master) ✗ rvm install 1.8.7 --with-openssl-dir=/opt/local You requested building with '/usr/bin/gcc-4.2' but it is not in your path. ➜ ~ git:(master) ✗ vi .rvmrc rvm_archflags="-arch x86_64" export CC="/usr/bin/gcc-4.2" export CFLAGS="-O2 -arch x86_64" export LDFLAGS="-L/opt/local/lib" export CPPFLAGS="-I/opt/local/include" Renaming .bash_profile to .profile ➜ ~ git:(master) ✗ vi .bash_profile ➜ ~ git:(master) ✗ mv .bash_profile .profile ➜ ~ git:(master) ✗ mv .profile usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory ➜ ~ git:(master) ✗ mv -f .bash_profile .profile mv: rename .bash_profile to .profile: No such file or directory ➜ ~ git:(master) ✗ port zsh: correct 'port' to 'pr' [nyae]? n zsh: command not found: port ➜ ~ git:(master) ✗ which port port not found ➜ ~ git:(master) ✗ .profile content: export PATH=$PATH:/opt/local/bin export MANPATH=$MANPATH:/opt/local/share/man export INFOPATH=$INFOPATH:/opt/local/share/info terminal osx-lion macports xcode4.3 .bash-profile share|improve this question edited Mar 19 '12 at 18:19 asked Mar 14 '12 at 0:43 Ava 1,631154175 1 I ran into this error in the command line when installing MongoDB for a Rails app, so I imagine some others may also find this question via Google sear
not found On Mac OSX, I'm on Yosemite, if you've installed MacPorts with the package installer and have the same issues that I encountered I've got the fix. Part of the problem is that MacPorts binaries are installed in /opt/local/bin, http://crained.com/640/fix-sudo-port-command-not-found/ so you just need to add this path to your PATH environment variable. Example with your user, add to your $HOME/.profile: Add the following in terminal -- Step one: export PATH=$PATH:/opt/local/bin Step two: $ source .profile Step three: sudo port -v selfupdate Author CharliePosted on December 7, 2014December 10, 2014Categories blog, R 6 thoughts on “Fix: sudo: port: command not found” RMagg says: August 28, 2015 at 1:21 am You, my friend, are epic.. Phil not found says: September 25, 2015 at 3:56 am Thanks dude, this helped a lot! Deepen says: December 26, 2015 at 3:46 pm Great! Thanks!! Lance says: February 18, 2016 at 1:18 pm Thank you! Sachin Ahuja says: May 16, 2016 at 11:40 am Hello, I did try to follow the above procedure but unfortunately I still get the error "sudo: port: command not found". Can you please guide me? Gabriela says: October 4, 2016 at 5:15 am command not found This helped a lot! Thank you! Leave a Reply Cancel reply Your email address will not be published. Required fields are marked *Comment Name * Email * Website Notify me of follow-up comments by email. Notify me of new posts by email. Post navigation Previous Previous post: Learn Project Management with Basecamp - OnlineNext Next post: Solved: SSL: certificate verification failed with R and twitteR I'm Charlie and I'm a Digital Media Executive specializing in digital marketing and web development. This blog is a fun outlet for me and my projects. Archives October 2016(2) August 2015(2) June 2015(1) May 2015(1) January 2015(2) December 2014(5) September 2014(1) August 2014(1) July 2014(4) June 2014(1) December 2013(2) June 2013(1) May 2013(2) April 2013(3) August 2012(1) July 2012(12) June 2012(1) April 2012(2) March 2012(1) February 2012(2) January 2012(4) February 2010(3) January 2010(10) December 2009(12) November 2009(13) October 2009(9) September 2009(1) August 2009(6) July 2009(2) June 2009(3) May 2009(3) April 2009(4) March 2009(4) February 2009(13) January 2009(4) December 2008(3) November 2008(9) October 2008(9) September 2008(14) August 2008(12) July 2008(11) Blogroll Hip Online Live ADHD - ADHD Non-profit Resource Blog Technology Contact Crained Proudly powered by WordPress Send to Email Address Your Name Your Email Address Cancel Post was not sent - check your email addresses! Email check failed, please try again Sorry, your blog cannot share posts by email.