You are here: Foswiki>Main/Cimec Web>UpgradingFC2FC5 (05 Sep 2014, MarioStorti)Edit Attach

Some notes in upgrading from Fedora Core 2 to FC5.

  • Octave:
    • One must install and upgrade other packages. This can be done automatically with yum: $ yum update octave. The new packages installed are
      • ufsparse-1.2-1.fc5.i386.rpm
      • fftw3-3.1.1-1.fc5.rf.i386.rpm
      • hdf5-1.6.5-5.fc5.i386.rpm
    • In the code one must replace gset COMMAND with =__gnuplot_raw__("COMMAND")
    • One can't set LOADPATH , one must use addpath.
    • octave-devel must be installed in order to run mkoctfile (Probably doing # yum install octave-devel

  • CVS works very slowly on the net, una has to do a #cvs update in each directory and then it starts working as allways.

  • For PETSc-FEM some C++ related fixes must be included. They have been consolidated in a patch = gcc-3.3.3-to-4.1.patch= . (gcc-3.3.3-to-4.1.patch). This is included in version 3.49.59 and above. -lg2c must be added to the libraries, probably in the CXX_SYS_LIB and C_SYS_LIB variables in bmake/linux/variables. One must do the explicit link libg2c.so -> /usr/lib/libg2c.so.0 in /usr/lib

  • For PETSc 2.1.6 some fixes in include/esi must be added. Basically using std::cout and std::endl instead of cout and endl and including the iostream header. They are in patch petsc-esi-2.1.6-gcc-4.1.0.patch
  • OpenDX
    • Only RPM's for FC4 are provided in the http://www.opendx.org, but they can be used in FC5 with the following instructions.
    • You must add the following libraries, probably to /usr/local/lib

%STARTCONSOLE% -rwxr-xr-x 1 root root 2.2M Aug 7 23:12 libXm.so.3.0.2 -rwxr-xr-x 1 root root 3.7M Aug 7 23:09 libgs.so.7.07 -rwxr-xr-x 1 root root 2.1M Aug 7 23:03 libMagick.so.6.2.2 -rwxr-xr-x 1 root root 29K Aug 7 23:02 libdpstk.so.1.0 %ENDCONSOLE%

    • The libraries can be obtained by downloading the RPM's and extracting the libraries from there. To extract the library first unpack the RPM (without installing it), for instance
    $ rpm2cpio ../xorg-x11-libs-6.8.2-37.FC4.49.2.1.i386.rpm \
       | cpio -i --make-directories
    • Find the library in the directories created. The packages needed are
%STARTCONSOLE% -rw-r--r-- 1 mstorti users 1.4M Aug 7 23:11 openmotif-2.2.3-6.i386.rpm -rw-r--r-- 1 mstorti users 2.6M Aug 7 22:48 xorg-x11-libs-6.8.2-37.FC4.49.2.1.i386.rpm -rw-r--r-- 1 mstorti users 7.7M Aug 7 22:47 ghostscript-7.07-41.i386.rpm -rw-r--r-- 1 mstorti users 2.7M Aug 7 22:45 ImageMagick-6.2.2.0-3.fc4.2.i386.rpm %ENDCONSOLE%

    • Install the OpenDX packages with # rpm -U --nodeps opendx-*
The packages are opendx-4.4.0-1.fc4.rpm and opendx-samples-4.4.0-1.noarch.rpm
  • slocate was replaced by mlocate . This is usually transparent.

-- MarioStorti - 08 Aug 2006
Topic attachments
I Attachment Action Size Date Who Comment
gcc-3.3.3-to-4.1.patchpatch gcc-3.3.3-to-4.1.patch manage 14 K 08 Aug 2006 - 19:31 MarioStorti Patch for PETSc-FEM version GCC 3.3.3 to 4.1.0
petsc-esi-2.1.6-gcc-4.1.0.patchpatch petsc-esi-2.1.6-gcc-4.1.0.patch manage 1 K 08 Aug 2006 - 19:24 MarioStorti patch for fixing some compilation errors in PETSc 2.1.6 include/esi
Topic revision: r5 - 05 Sep 2014, MarioStorti
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback