Notes by Rémi Busselez.
First you need to install Xcode to behave a compiler. Afterwhat you need to install Macports, to build a (quasi) sane unix environment.
bison, flex and blas come with Apple XCode and does not need to be installed with Macports
Install readline, gnuplot, yaml-cpp, gsl, fftw3 and boost (take a long time !) Using Macports, gnuplot install readline for his own dependencies
Environment should be OK now.
You also need to link boost headers in /usr/include
sudo ln -s /opt/local/include/boost /usr/include
kww:
./configure –prefix=/opt/local (to be consistent with Macports usage install in /opt/local)
make sudo make install
Work Fine
lmfit:
./configure --prefix=/opt/local (to be consistent with Macports usage install in /opt/local) make sudo make install
Work fine well
frida-libs:
./configure --prefix=/opt/local (to be consistent with Macports usage install in /opt/local) make sudo make install
Work fine well
To compile frida, it is just a little bit more complicate
As readline dev files stand in /opt/local/include, we will have to include this path in CPPFLAGS
As readline library files (the real one not the symbolic link to libedit) stand in /opt/local/lib we will have to include it in LDFLAGS
As malloc.h is in /usr/include/malloc/malloc.h we will have to include this directory in CPPFLAGS
Moreover as a symbolic linc is present to simulate a fake readline library towards the libedit library, you may have to delete it temporarily:
sudo rm /usr/lib/libreadline.dylib
(do not forget to relink after the installation is performed: sudo ln -s /usr/lib/libedit.3.dylib /usr/lib/libreadline.dyib)
To configure all the path just:
./configure –prefix=/opt/local CPPFLAGS=“-I/opt/local/include -I/usr/include/malloc -I/opt/local/include/yaml-cpp” LDFLAGS=“-L/opt/local/lib
To define the uint in xax_lex.cpp and xax_yacc.cpp add
#include <sys/types.h>
You can build it with
make
and install it It should compile fine
Afterwhat you will have to modify frida.ini in /opt/local/etc/frida and change path like /usr/local/share/frida with /opt/local/share/frida