This will take a bit of time, depending on your internet connection and your Mac speed.īecause we installed MacPorts before, homebrew may ask you to confirm changing permission to /opt/local and other directories in there to install OSS libraries you’ll need in the future, you can just press enter to confirm this.
While this works fine for Mac native code, it won’t work for most of Open Source projects usually created around GCC.
Now let’s install GCC, this because on recent releases of Mac OS X (from Maverick AFAIR) clang is used also when invoking specifically gcc.If ] then MACPORTS_PREFIX='/opt/local' fi export PATH=" $MACPORTS_PREFIX/bin: $MACPORTS_PREFIX/sbin: $PATH " export CPATH=" $MACPORTS_PREFIX/include: $CPATH "ĭon’t forget to give the script executable permissions using “chmod +x” and don’t forget to execute your macport commands using this script to run them! If then echo "macport usage: $0 command " >&2 exit 1 fi # If no parameters are provided then show # script if I find more issues, so consider I saved this script into my ~/ and called it “macport”, you can call it as you prefer. A possible hack to achieve this is to create the following script to use instead of the standard MacPort syntax to run MacPort installations and everything.Now you have MacPorts installed and updated, but you still need some little hack to make sure it will not interfere with Homebrew later.
This update will take a while, depending on your internet connection and your Mac speed into computing all the received info.
This is a how-to article so I assume you know how to use Mac OS X terminal and commands like sudo. If you don’t have these requirements, please make some practice first or you may end up messing with your Mac. To follow this article you need to have some confidence using Mac OS terminal application and some basic Mac command line experience.