Xanda's Blog !~!

Macports on Mavericks

Oct
24

Quick update for those who found something buggy with their Macports after upgraded their OSX to Mavericks

  1. Download and install Xcode 5.0.1
  2. Install Command Line Tool
    xcode-select --install
  3. Accept Xcode license agreement
    sudo xcodebuild -license
  4. Download Macports source
    cd /tmp
    wget https://distfiles.macports.org/MacPorts/MacPorts-2.2.0.tar.gz
  5. Extract and compile
    tar xvfz MacPorts-2.2.0.tar.gz
    cd MacPorts-2.2.0
    ./configure
    make
    sudo make install
  6. Update your Macports
    sudo port -v selfupdate

Thanks

Fixing pcre++ looping bug in Macports

May
30

I’ve updated my Macports to version 2.1.1 and out of sudden, the following error/warning occur:

Warning: No port pcre++ found in the index; can't rebuild
--->  Found 0 broken port(s), determining rebuild order
--->  Rebuilding in order
--->  Scanning binaries for linking errors: 100.0%
--->  Found 1 broken file(s), matching files to ports
Warning: No port pcre++ found in the index; can't rebuild
--->  Found 0 broken port(s), determining rebuild order
--->  Rebuilding in order
--->  Scanning binaries for linking errors: 100.0%
--->  Found 1 broken file(s), matching files to ports

This is due to the pcre++ is now replaced with pcrexx package. As for the quick solution for this:

sudo port -f deactivate pcre++
sudo port -f activate pcrexx

In my case, the output is as below:

--->  The following versions of pcrexx are currently installed:
--->      pcrexx @0.9.5_1
--->      pcrexx @0.9.5_2
Error: port activate failed: Registry error: Please specify the full version as recorded in the port registry.

Now choose the latest version and activate it

sudo port -f activate pcrexx @0.9.5_2