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

From NEOSYS Dev Wiki
Jump to navigationJump to search
Line 4: Line 4:
  yum update
  yum update
  yum install boost-devel postgresql-devel gcc-c++ subversion postgresql-server
  yum install boost-devel postgresql-devel gcc-c++ subversion postgresql-server
service postgresql start


=== Exodus ===
=== Exodus ===

Revision as of 14:09, 11 July 2009

Preparation

sudo su -
yum update
yum install boost-devel postgresql-devel gcc-c++ subversion postgresql-server
service postgresql start

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 the following line (nb with no preceding word include)

/usr/local/lib

register the new libraries

/sbin/ldconfig

make a pointer to the include files

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();
	print(oconv(date(),"D"));
 }
g++ tester.cpp -lexodus-9.6 -I/usr/local/include/exodus
./a.out
27 JUN 2009
27 JUN 2009