Sunday, July 21, 2013

Installing Gambit 64 bit on CentOS (or on any Linux)

Installing Gambit 64 bit on linux machines is little tricky as you need libraries for both 64 bit and 32 bit, and also compatible libraries. You will often face irritating problems like  'file libXp.so.6 not found' or 'lnamd64/fluentlm-helper90: No such file or directory' etc. 

I searched various platforms to get the solution (including cfd-online) and here is one which works best (I think) to solve these problems. This is for CentOS, you can use other similar package installers (like apt-get) to install these libraries.  
  
Step 1: Install gambit 64 bit from command line

Step 2: Search for libraraies which are missing, you can use 'yum whatprovides $libraryname' for the same and then install using 'yum install'. Note you need to install both 32 and 64 bit libraries so instead of doing 
 yum install packagename.i686 or   yum install packagename.64

do yum install packagename - it will install both 64 bit as well as 32 bit.

Here are the libraries you need 

$yum whatprovides libstdc*
$yum install compat-libstdc++-33-3.2.3-69.el6
$yum whatprovides libXm.so.3
$yum install openmotif22-2.2.3-19.el6
$yum whatprovides libXpm.so.4
$yum install libXpm-3.5.8-2.el6

Step 3: Run Gambit

and it should work. :)

No comments: