# Uncomment one of the following lines to choose your OS
# export OS_NAME="linux"
# export OS_NAME="osx"
# Fetch the latest release from GitHub
$ curl -s -L https://github.com/rdaly525/coreir/releases/latest | grep "href.*coreir-${OS_NAME}.tar.gz" | cut -d \" -f 2 | xargs -I {} wget https://github.com"{}"
# Unpack and install
$ mkdir coreir_release;
$ tar -xf coreir-${OS_NAME}.tar.gz -C coreir_release --strip-components 1;
$ cd coreir_release && sudo make install && cd ..
Option 1: you could provide use cmake DCMAKE\_INSTALL\_PREFIX=\<path\> ..
Option 2:
Add export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:<path_to_coreir_release>/lib
to your ~/.bashrc
or ~/.profile
If this does not work, you may have System Integrity Protection enabled on your Mac.
Add export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path_to_coreir_release>/lib
to your ~/.bashrc
or ~/.profile
gcc 4.9
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Note: To specify a specific version of g++
(typically required on older, shared Linux systems), set the CXX
variable in the make command (e.g. make install CXX=g++-4.9
)
brew install cmake
git clone https://github.com/rdaly525/coreir.git
cd coreir/build
cmake ..
make -j<num_processors>
sudo make install
cd coreir
make -j test
cd coreir/build
sudo make install
cd coreir
sudo make uninstall