Log of an installation of libexodus on Centos 5.3: Difference between revisions

From NEOSYS Dev Wiki
Jump to navigationJump to search
(New page: === Preparation === sudo su - yum update yum install postgresql-server yum install postgresql-devel yum install libicu-devel yum install subversion yum install gcc-c++ === Boost ...)
 
Line 4: Line 4:


  yum update
  yum update
  yum install postgresql-server
  yum install postgresql-server postgresql-devel libicu-devel subversion gcc-c++
yum install postgresql-devel
yum install libicu-devel
yum install subversion
yum install gcc-c++


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

Revision as of 16:08, 3 July 2009

Preparation

sudo su -
yum update
yum install postgresql-server postgresql-devel libicu-devel subversion gcc-c++

Boost version 1_38

(only 1_33 available by YUM)

wget http://downloads.sourceforge.net/boost/boost_1_38_0.tar.bz2?use_mirror=garr
tar xvf boost_1_38_0.tar.bz2
cd boost_1_38_0
./configure --with-libraries=date_time,filesystem,regex,system,thread
nano Makefile
... and append  -j4 variant=release link=shared  to BJAM_CONFIG=
make
make install

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
ln -s /usr/include /usr/include/postgresql
./configure
make
make install
nano /etc/ld.so.conf
... and add /usr/local/lib (nb with no preceding word include)
/sbin/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 -I/usr/local/include/exodus/exodus
./a.out
27 JUN 2009