1/4/2023 0 Comments Update gcc macportsPara instalar o Ruby no Mac OS X voc pode precisar do MacPorts, ento v com o MacPorts e voc ser feliz. Com a cerveja voc vai ficar preso em breve porque a frmula que voc precisa no existe. #Update gcc macports installInstall build dependencies sudo port install boostįetch OpenCog source repositories sudo port install git-coreĬC="gcc-mp-4.7" CXX="g++-mp-4.7" cmake. Como user475443 apontou, MacPorts tem muitos mais pacotes. If your system hasn't been used before to build software, it may take many hours. Download and install the MacPorts pkg installer appropriate for your OS. #Update gcc macports for macNote: The commands above will also download, build and install necessary dependencies, such as a C compiler and other libraries and tools. Installing GCC 5.1 for Mac Users Download and install Xcode from the Mac App Store. Install build tools sudo port install gcc47 Feel free to update this section, if you get it working with Macports. This method hasn't been tested since OpenCog was split into 4 repos. To sidestep issues, modules load with LD_LIBRARY_PATH set, e.g.Įxport LD_LIBRARY_PATH=$OPENCOG_BIN/opencog/server:$OPENCOG_BIN/opencog/shell Make sure which gcc is /opt/local/bin/gcc (macport installed) or whatever C++11 compliant gcc you want (similarly, which g++ should be /opt/local/bin/g++), and make sure python is correct (e.g., /opt/local/bin/python if using MacPorts). Git clone git:///opencog/opencog Compile and install CogUtil cd cogutilĬompile and install AtomSpace cd atomspace After installation is done, it is recommended that you run this step manually on a regular basis to to keep your MacPorts system always current: sudo port -v selfupdate At this point you should be ready to enjoy MacPorts Type man port at the command line prompt and/or browse over to our Guide to find out more information about using MacPorts. Fetch OpenCog source repositories brew install git Make sure that you have correct version of gcc and g++ installed in the directory, mentioned in command above otherwise errors may pop up while building OpenCog repositories as they only support GNU gcc and g++ at this time. Note: There may be issues with different versions of gcc/g++ installed on your system. Update bash profile echo 'alias g++="g++-5 -std=c++1y -fext-numeric-literals"' > ~/.bash_profileĮcho 'alias gcc="/usr/local/Cellar/gcc/5.1.0/bin/gcc-5"' > ~/.bash_profileĮcho 'export CC="/usr/local/Cellar/gcc/5.1.0/bin/gcc-5"' > ~/.bash_profileĮcho 'export CXX="g++-5 -std=c++1y -fext-numeric-literals"' > ~/.bash_profile Install build dependencies brew install boost Note: The commands above will also download, build and install necessary dependencies, such as a C compiler and other libraries and tools. If already installed, update it before proceeding further. With Homebrew Install Homebrew /usr/bin/ruby -e "$(curl -fsSL )" The boxes below surrounded with dotted lines are commands to be pasted onto the command line. from Macintosh HD > Applications > Utilities > Terminal. Install XCode Command Line Tools from (February 2013 at the time of this writing) Install XCode from Mac App Store (XCode 4.6 at the time of this writing) Install the latest updates from Apple via Apple Menu > Software Update Install Apple Xcode
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |