Building on Mac: Difference between revisions

From NEOSYS Dev Wiki
Jump to navigationJump to search
No edit summary
Line 66: Line 66:
  exit
  exit


=== Building and Installing libexodus ===
=== Building and Installing exodus ===


Either download Exodus using Subversion (recommended - latest version)
Download Exodus using Subversion


  cd ~
  cd ~
Line 74: Line 74:
  cd exodus
  cd exodus
  svn co http://svn.neosys.com/svn/trunk
  svn co http://svn.neosys.com/svn/trunk
  cd trunk/exodus/exodus
  cd trunk/exodus


Ensure postgres can be found (change 8.3 to your version) and check pg_config can run
Ensure postgres can be found (change 8.3 to your version) and check pg_config can run
Line 81: Line 81:
  pg_config
  pg_config


Find out where your boost libraries are installed and what they are named.
Confirm where your boost libraries are installed and what their suffix is if any.


  find /usr | grep libboost
  find /usr | grep libboost


Customise the following command to suit the boost library location and names that you found in the previous step. There might be a configure.bsd file to modify/use.
Use a modified configure command using the boost library suffix from the previous step. The leading - is required.


  ./configure --with-boost-libdir=/usr/local/lib \
  ./configure.bsd -xgcc40-mt
--with-boost-date-time=boost_date_time-xgcc40-mt \
--with-boost-filesystem=boost_filesystem-xgcc40-mt \
--with-boost-regex=boost_regex-xgcc40-mt \
--with-boost-thread=boost_thread-xgcc40-mt


  make
  make

Revision as of 20:58, 13 July 2009

Installing Exodus on Mac is almost identical to installing on Linux but it is a little harder to acquire and configure the dependencies.

This install was performed on OSX 10.5.5 (Leopard)

Installing dependencies

Installing C++ compiler

Older macs might need to install XCODE tools from http://developer.apple.com after free registration. This is unfortunately a large 1Gb download.

Newer macs have XCODE tools installer in the Applications or Library folder and you just have to install it.

The XCODE package includes subversion

Installing Postgres

http://www.postgresql.org/download/macosx

http://www.enterprisedb.com/products/pgdownload.do#osx

http://www.enterprisedb.com/getfile.jsp?fileid=484

Once downloaded, just do a standard install and remember the admin user password.

Installing Boost

Minimum required is boost 1_33. Here we install 1.38.

---

Optionally get ICU to fully support unicode in boost regex. How to do this on Mac OSX is unknown at the moment.

Download and unpack Boost Source

In safari get http://downloads.sourceforge.net/boost/boost_1_38_0.tar.bz2 and move it to your home directory.

Open a classic console shell (terminal)

cd ~
tar xvf boost_1_38_0.tar.bz2
cd boost_1_38_0
./configure --help
./configure --with-libraries=date_time,filesystem,regex,thread

Optionally, speed up the build of Boost by only doing the libraries and versions required. ADD additional config to the BJAM_CONFIG line as follows:

nano Makefile
BJAM_CONFIG= -j4 variant=release link=shared

Build Boost

make

Install Boost after becoming superuser

sudo make install

Ensure boost includes can be found. This step might be eliminated in a better Exodos installer.

sudo ln -s /usr/local/include/boost-1_38/boost /usr/local/include/boost

Quit superuser

exit

Building and Installing exodus

Download Exodus using Subversion

cd ~
mkdir exodus
cd exodus
svn co http://svn.neosys.com/svn/trunk
cd trunk/exodus

Ensure postgres can be found (change 8.3 to your version) and check pg_config can run

PATH=/Library/PostgreSQL/8.3/bin/:$PATH
pg_config

Confirm where your boost libraries are installed and what their suffix is if any.

find /usr | grep libboost

Use a modified configure command using the boost library suffix from the previous step. The leading - is required.

./configure.bsd -xgcc40-mt
make
sudo make install

An additional installation step that unfortunately has to be done by hand at the moment.

sudo ln -s /usr/local/include/exodus-9.6/exodus /usr/local/include/exodus 

From here on the steps are almost identical to Log_of_an_installation_of_libexodus_on_Centos_5.3