Log of an installation of libexodus on Ubuntu 8.04.1 LTS: Difference between revisions

From NEOSYS Dev Wiki
Jump to navigationJump to search
Line 5: Line 5:
  apt-get install postgresql-8.3 libpq-dev libicu-dev build-essential install subversion
  apt-get install postgresql-8.3 libpq-dev libicu-dev build-essential install subversion


=== Boost version 1_38 ===
=== Boost version 1_35 ===


(only 1_34 available by apt-get)
(only 1_34 available by apt-get)


  wget http://downloads.sourceforge.net/boost/boost_1_38_0.tar.bz2?use_mirror=garr
  wget http://downloads.sourceforge.net/boost/boost_1_35_0.tar.bz2
  tar xvf boost_1_38_0.tar.bz2
  tar xvf boost_1_35_0.tar.bz2
  cd boost_1_38_0
  cd boost_1_35_0
  ./configure --with-libraries=date_time,filesystem,regex,system,thread
  ./configure --with-libraries=date_time,filesystem,regex,system,thread
  nano Makefile
  nano Makefile

Revision as of 11:00, 27 June 2009

Preparation

sudo su -
apt-get update
apt-get install postgresql-8.3 libpq-dev libicu-dev build-essential install subversion

Boost version 1_35

(only 1_34 available by apt-get)

wget http://downloads.sourceforge.net/boost/boost_1_35_0.tar.bz2
tar xvf boost_1_35_0.tar.bz2
cd boost_1_35_0
./configure --with-libraries=date_time,filesystem,regex,system,thread
nano Makefile
.. and add -j4 variant=release link=shared  to the end of the line BJAM_CONFIG=
make
make install
ldconfig

Exodus

(pgexodus (which allows "sort/select/index by") isnt included in this quick install)

cd ~
mkdir exodus
cd exodus
svn co http://svn.neosys.com/svn/trunk
cd trunk/exodus/exodus
./configure
make
make install
ldconfig
ln -s /usr/local/include/exodus-9.6/exodus /usr/local/include/exodus 

Testing

nano tester.cpp
 #include <exodus/exodus.h>
 int main() {
	date().oconv("D").outputln();
 }
g++ tester.cpp -lexodus-9.6 -lpq -I/usr/local/include/exodus
/a.out
25 JUN 2009