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 5: Line 5:
  yum update
  yum update
  yum install postgresql-server postgresql-devel libicu-devel subversion gcc-c++
  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 ===
=== Exodus ===


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


  cd ~
  cd ~
Line 36: Line 23:


  nano /etc/ld.so.conf
  nano /etc/ld.so.conf
... and add /usr/local/lib (nb with no preceding word include)
 
... and add the following line  (nb with no preceding word include)
 
/usr/local/lib
 
register the new libraries
 
  /sbin/ldconfig
  /sbin/ldconfig
make a pointer to the include files


  ln -s /usr/local/include/exodus-9.6/exodus /usr/local/include/exodus  
  ln -s /usr/local/include/exodus-9.6/exodus /usr/local/include/exodus  
Line 52: Line 47:
</pre>
</pre>


  g++ tester.cpp -lexodus-9.6 -lpq -I/usr/local/include/exodus -I/usr/local/include/exodus/exodus
  g++ tester.cpp -lexodus-9.6 -I/usr/local/include/exodus


  ./a.out
  ./a.out


  27 JUN 2009
  27 JUN 2009

Revision as of 23:50, 7 July 2009

Preparation

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

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