User Tools

Site Tools


docs:tips_n_tricks:max_os_x:macports_install.html

This is an old revision of the document!


Install MacPorts to custom location

cd /some/location
tar -xvkpjf ~/Downloads/MacPorts-2.3.4.tar.gz
cd MacPorts-2.3.4
./configure --prefix=/opt/macports --with-applications-dir=/opt/macports/Applications
make
sudo make install
echo "-x11 +no_x11 +quartz" >> /opt/macports/etc/macports/variants.conf
PATH="/opt/macports/bin:$PATH" sudo port -v selfupdate
PATH="/opt/macports/bin:$PATH" sudo port install zsh rcs pwgen wget unzip tinyca2 cvs \
                                                 pstree rdesktop lynx pidgin xsel
 

(For some paranoid reasons, I prefer to not have /opt/macports/bin in my default PATH)

PATH="/opt/macports/bin:$PATH" sudo port install jpilot

fails unfortunately:

~ $ fgrep error: /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_palm_jpilot/jpilot/work/jpilot-1.8.2/config.log
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
clang: error: unknown argument: '-qversion'
clang: error: no input files
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:4691: error: XML::Parser perl module is required for intltool
~ $

References

  • All this was basically extracted from the MacPorts Install Guide and the Installation Chapter of the overall Macports Guide. A little bit re-written and condensed to my taste ;-)
1)
There was an issue when running ./configure related to accepting the licence which could be solved by running some command (xcode-select –install?) as root - don't remember the details :-/
According to the MacPorts Quickstart Guide you should run xcodebuild -license - maybe that helps (too).
docs/tips_n_tricks/max_os_x/macports_install.html.1444108658.txt.gz · Last modified: 06.10.2015 07:17 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki