Install it++ in Fedora 12

It++ can be installed in Fedora 12 using the following steps. Similar steps should also do the job in other Luinux/Unix machines.

  1. Go to System/Administration/Add/Remove Software and install
    1. it++ with development files
    2. blas with development libraries
    3. fftw with headers
  2. Create the following directory structure (in /home/USERNAME/):
    1. mkdir local
    2. cd local
    3. mkdir bin include lib share src
  3. Inside /home/username/local, get it++ as “wget http://downloads.sourceforge.net/itpp/itpp-4.0.7.tar.gz”
  4. Add the following lines (at the end of the file)to you ~/.bashrc file (for example via  “vi ~/.bashrc”:
    # it++ installation
    PATH=$PATH:/home/USERNAME/local/bin
    export LD_LIBRARY_PATH=/home/USERNAME/local/lib:$LD_LIBRARY_PATH
  5. Run bash
  6. untar it++:
    tar xjvf itpp-4.0.7.tar.gz
  7. Go to the itpp directory (cd itpp-4.0.7)
  8. Install
    ./configure –prefix=/home/USERNAME/local
    make
    make install
    make check
  9. If you get the message “ERRROR: 2/55 tests failed!!!” (specifically ‘blas_test’ and ‘vec_test’), then you need to install some old fortrand compiler… go to System/Administration/Add/Remove Software and search for “compat-gcc” and install the 3 packages
  10. Repeat step #7 but before that, do (thanks Stelios!)
    export F77=f95
  11. Create the executable
    g++ `/home/USERNAME/local/itpp-4.0.1/itpp-config –cflags` -o EXECUTABLE SOURCE.cpp `/home/USERNAME/local/itpp-4.0.1/itpp-config –libs`
  12. Run the file
    ./EXECUTABLE
  13. Enjoy!

Note: If a .cpp is updated, do “make clean, make, make install, make check”

1,158 total views, 2 views today