Log of an installation of libexodus on Centos 5.3: Difference between revisions
From NEOSYS Dev Wiki
Jump to navigationJump to search
No edit summary |
|||
Line 1: | Line 1: | ||
=== Preparation === | === Preparation === | ||
sudo | sudo yum update | ||
sudo yum install boost-devel postgresql-devel gcc-c++ subversion postgresql-server | |||
yum install boost-devel postgresql-devel gcc-c++ subversion postgresql-server | sudo service postgresql start | ||
service postgresql start | |||
=== Exodus === | === Exodus === | ||
cd ~ | cd ~ | ||
Line 14: | Line 11: | ||
cd exodus | cd exodus | ||
svn co http://svn.neosys.com/svn/trunk | svn co http://svn.neosys.com/svn/trunk | ||
cd trunk/exodus | cd trunk/exodus | ||
./configure | ./configure | ||
make | make | ||
make install | sudo make install | ||
nano /etc/ld.so.conf | sudo nano /etc/ld.so.conf | ||
... and add the following line ( | ... and add the following line (note: NO preceding word include) | ||
/usr/local/lib | /usr/local/lib | ||
Line 30: | Line 25: | ||
register the new libraries | register the new libraries | ||
/sbin/ldconfig | sudo /sbin/ldconfig | ||
make a pointer to the include files | make a pointer to the include files | ||
ln -s /usr/local/include/exodus-9.6/exodus /usr/local/include/exodus | sudo ln -s /usr/local/include/exodus-9.6/exodus /usr/local/include/exodus | ||
=== Testing === | === Testing === | ||
Line 48: | Line 43: | ||
</pre> | </pre> | ||
g++ tester.cpp -lexodus | g++ tester.cpp -lexodus -I/usr/local/include/exodus | ||
./a.out | ./a.out |
Revision as of 14:58, 11 July 2009
Preparation
sudo yum update sudo yum install boost-devel postgresql-devel gcc-c++ subversion postgresql-server sudo service postgresql start
Exodus
cd ~ mkdir exodus cd exodus svn co http://svn.neosys.com/svn/trunk cd trunk/exodus
./configure make sudo make install
sudo nano /etc/ld.so.conf
... and add the following line (note: NO preceding word include)
/usr/local/lib
register the new libraries
sudo /sbin/ldconfig
make a pointer to the include files
sudo 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 -I/usr/local/include/exodus
./a.out
27 JUN 2009 27 JUN 2009