Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2009-01-19 21:09:11

toltec
Member
Registered: 2009-01-04
Posts: 94

How I Installed Aster 9.4 on Ubuntu 8.10 64 bit using GCC

The following steps show how I installed Aster on my Ubuntu 8.10 64 bit machine using GCC. Unfortunately at this stage the compilation is for one processor only.

1) I installed the following packages from the 8.10 Intrepid repository prior to compilation. Some may not be
    necessary:

    atlas - for liblapack.a and libblas.a
    tk
    tcl
    gfortran
    libgfortran2
    python-numeric-ext
    python2.5-dev
    python-dev ... these dev files are mentioned in the readme doc but are easily overlooked by impatient
                         people like myself!
    python-tk  ...  eficas would not work without this
    zlib1g-dev
    bison
    flex

2) As mentioned in other posts/forums f77 is no longer in the 8.10 repositories. To get around this:
        a) sudo nedit /etc/apt/sources.list
        b) add:
                ## Including 8.04 repositories to get hold of g77
                deb http://gb.archive.ubuntu.com/ubuntu/ hardy universe
                deb-src http://gb.archive.ubuntu.com/ubuntu/ hardy universe
                deb http://gb.archive.ubuntu.com/ubuntu/ hardy-updates universe
                deb-src http://gb.archive.ubuntu.com/ubuntu/ hardy-updates universe
        c) sudo aptitude update
        d)sudo aptitude install g77

Your package manager won't like this and will ask you if you want to do a partial upgrade (given that you've just done a partial downgrade). Ignore these requests, 8.10 updates can still be done. I don't know if this creates any significant conflicts so I removed the above lines from sources.list once f77 was installed. Perhaps it would be a good idea to remove f77 completely once Aster is installed, making sure that libg2c.a/libg2c.so are copied back to /usr/lib and usr/lib32 as I believe Aster will need them at runtime(?).

3) Compile Aster as per readme. Attached is my setup.cfg file for info.

4) By default Aster must be set up in a client/server configuration even when running on a standalone machine.
    This means that the machine must be able to SSH to localhost.

    1) Follow the instructions on the Ubuntu forum for setting up a SSH server, keeping in mind not to open your
        machine to security risks.See https://help.ubuntu.com/community/SSHHowto

    2) I use encrypted keys only for SSH (no password), so I set up a key to connect to localhost (127.0.0.1).
       This allows Aster to SSH to my machine (necessary to copy results from /tmp to /home folder). When
       Aster runs you should see a SSH connection (in Firestarter's Active Connections, for example) which is
       only dropped when the job completes.

5) I created a symbolic link in /usr/local/bin/ to make the astk command available to the system:
        a) cd /usr/local/bin
        b) sudo ln -s /opt/aster/gnu/ASTK/ASTK_CLIENT/bin/astk

        Typing "astk" in any shell should start ASTK.

6) If for some reason you reinstall Aster in a different directory to the original one you must edit the following file
    to set the environment correctly /home/xxx/.Eficas_install/editeur.ini



I hope this is a help. If there is a better ways of doing this or anything misleading in the above then please let me know!


G


Attachments:
setup-gnu-no-mpi-example.cfg, Size: 6.43 KiB, Downloads: 851

Ubuntu 12.04
Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz

Offline

#2 2009-01-20 09:31:30

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,183

Re: How I Installed Aster 9.4 on Ubuntu 8.10 64 bit using GCC

Hello,

g77 can not build 64 bits code. And I see that your setup.cfg is using gfortran what is correct.
Is the point 2 of your post really usefull ?

MC


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#3 2009-01-20 09:57:55

toltec
Member
Registered: 2009-01-04
Posts: 94

Re: How I Installed Aster 9.4 on Ubuntu 8.10 64 bit using GCC

Attempting to install without g77 aborted with the message that neither libg2c.a or libg2c.so can be found. Ubuntu forums (one of which suggested the workaround)  said that this was a result of g77 being excluded from the 8.10 repositories. My point 2) is what allowed me to compile on my 64 bit machine. I'm afraid I cannot clarify why a 64 bit compilation calls for these files.

G


Ubuntu 12.04
Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz

Offline

#4 2009-01-20 12:18:17

Vincent Choupeaux
Member
From: Poissy
Registered: 2007-11-22
Posts: 9

Re: How I Installed Aster 9.4 on Ubuntu 8.10 64 bit using GCC

Hello,
Why not trying intel compiler?
http://www.code-aster.org/forum2/viewtopic.php?id=11932

Vincent C.

Offline