Skip to content

Install CalculiX

Install CalculiX published on No Comments on Install CalculiX

1. Download source code
http://www.dhondt.de/
http://www.netlib.org/linalg/spooles/spooles.2.2.html
http://www.caam.rice.edu/software/ARPACK/
What you get is:
cgx_2.8.all.tar.bz2
ccx_2.8p2.src.tar.bz2
spooles.2.2.tgz
arpack96.tar.gz, patch.tar.gz

2. upzip files
mkdir -p $HOME/CalculiX && cd $HOME/CalculiX
tar -xf cgx_2.8.all.tar.bz2
tar -xf ccx_2.8p2.src.tar.bz2
mkdir SPOOLES.2.2
tar -xf spooles.2.2.tgz -C SPOOLES.2.2
tar -xf arpack96.tar.gz

3. Compile cgx
cd $HOME/CalculiX/CalculiX/cgx_2.8
make

3. Compile SPOOLSE lib
cd $HOME/CalculiX/SPOOLES.2.2
modify Make.inc, let CC = gcc
make lib

4. Compile ARPACK lib
cd $HOME/CalculiX/ARPACK
modify ARmake.inc
home = $(HOME)/CalculiX/ARPACK
PLAT = INTEL
FC = gfortran
FFLAGS = -O
MAKE = make

modify Makefile
PRECISIONS = double ddrv

modify ARPACK\UTIL\second.f
commented:      C   EXTERNAL   ETIME

5. Compile ccx
cd $HOME/CalculiX/CalculiX/ccx_2.8p2/src
make

6. Move the bin files to a certain path (optional)
mkdir -p $HOME/CalculiX/bin
cp $HOME/CalculiX/CalculiX/ccx_2.8p2/src/ccx_2.8p2 $HOME/CalculiX/bin/
cp $HOME/CalculiX/CalculiX/cgx_2.8/src/cgx $HOME/CalculiX/bin/
ln -s $HOME/CalculiX/bin/ccx_2.8p2 $HOME/CalculiX/bin/ccx

==================================

DEBUG:

1. X11/Xmu/StdCmap.h: No such file or directory

libxmu-dev, libxmu-headers

2. X11/extensions/XInput.h: No such file or directory

We can solve this buy searching

apt-file search XInput.h
libxi-dev: /usr/include/X11/extensions/XInput.h

=====================================

An interesting website:

https://mechanicalhacks.wordpress.com/

https://mechanicalhacks.wordpress.com/2011/03/29/building-calculix-to-run-native-on-64-bit-windows/  (some information on install calculiX)