svn – Geek 2.0 https://www.stormacq.com Some not-so random thoughts about this small IT World Mon, 15 Oct 2018 14:03:30 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.8 MacPort on Mac OS X Lion https://www.stormacq.com/macport-on-mac-os-x-lion/ https://www.stormacq.com/macport-on-mac-os-x-lion/#comments Thu, 21 Jul 2011 08:28:22 +0000 http://www.stormacq.com/?p=450 If you have performed a fresh install of Mac OS X Lion or if you plan to install MacPort after having installed Lion, you will soon realize that the MacPort team does not distribute (yet) a Lion installer.  Snow Leopard installer will fail when detecting Lion.

Question is therefore : how to install MacPort on Lion ?  Answer : install it from the sources.

It might be scarry, but it is very easy, here are the details.

Preriquisite : install Aple’s development tool XCode.  It is freely available from the App Store (be patient it is a 3.5 Gb download)

  • Open a terminal
  • create a directory for the sources
mkdir macport.sources
  • Fetch the sources

cd macport.sources
sudo svn checkout http://svn.macports.org/repository/macports/trunk

  • Compile
cd trunk/base
sudo ./configure --enable-readline
sudo make install
  • Install
sudo make distclean
  • Change your profile to include MacPort in the PATH
vi $HOME/.profile
#!/usr/bin/bash
# MacPort
export PATH=$PATH:/opt/local/bin
  • Source your profile to include the changes
. $HOME/.profile

That’s it ! Easy as I promised.

You can now search for package with

sudo port list | grep <your search>

and install packages with

sudo port install <package name>

Enjoy !

]]>
https://www.stormacq.com/macport-on-mac-os-x-lion/feed/ 5