avl Erreur de segmentation

  • chavagne jean
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
10 years 3 weeks ago #5508 by chavagne jean
avl Erreur de segmentation was created by chavagne jean
j'avais caelinux 2009 et j'utilisais avl
depuis que je suis passé sur ubuntu 11.04, j'ai eu un problème.
j'ai essayé de réinstaller caelinux 2009 mais apparemment il n'est plus compatible?
J'ai donc voulu réinstaller avl

chavagne@chavagne-KP236AA-ABF-a6460-fr:~$ sudo cp avl /usr/bin/
chavagne@chavagne-KP236AA-ABF-a6460-fr:~$ avl
bash: /usr/bin/avl: Permission non accordée
chavagne@chavagne-KP236AA-ABF-a6460-fr:~$ chmod +x /usr/bin/avl
chmod: modification des permissions de «/usr/bin/avl»: Opération non permise
chavagne@chavagne-KP236AA-ABF-a6460-fr:~$ sudo chmod +x /usr/bin/avl
chavagne@chavagne-KP236AA-ABF-a6460-fr:~$ avl
Erreur de segmentation
chavagne@chavagne-KP236AA-ABF-a6460-fr:~$

N'étant pas informaticien, je me trouve dans l'incapacité de faire fonctionner avl !

pourquoi: erreur de segmentation
comment résoudre le problème?

Dans le prochain caelinux 2011 ne pourrait-on pas inclure avl comme dans le caelinux 2009
:unsure:

jean

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #5514 by Claus
Replied by Claus on topic Re:avl Erreur de segmentation
Correct me if I mistranslated: did you copy 'avl' from caelinux 2009 and is trying to run it on ubuntu 11.04?
If so, it's pretty unlikely you'll get it to run, since it was compiled against libraries that has been updated/changed several times over the years - or many other factors.
You can try running the command 'strace avl' to see where it fails, but I would recommend you find a version that's built for 11.04.
Isn't 'libavl1' in the package manager what you're looking for?
If it isn't, then I suggest you download the source and compile your own version specifically for 11.04.

Regards,

Claus

Code_Aster release : STA11.4 on OpenSUSE 12.3 64 bits - EDF/Intel version

Please Log in or Create an account to join the conversation.

  • chavagne jean
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
10 years 3 weeks ago #5517 by chavagne jean
Replied by chavagne jean on topic Re:avl Erreur de segmentation
Before i used Caelinux 2009 (ubuntu 08.04) and i had avl
Since I am on 11.04 i can't obtain .avl.
I wanted to reinstall Caelinux on 2009 but apparently he is not any more detected!

1. I download avl from : web.mit.edu/drela/Public/web/avl/avl3.31.tgz
2. I do : tar -zxvf avl3.31.tgz
3. I have avl but:
chavagne@chavagne-KP236AA-ABF-a6460-fr:~$ Avl
Avl : commande introuvable ( not find)
chavagne@chavagne-KP236AA-ABF-a6460-fr:~$ sudo avl
[sudo] password for chavagne:
chavagne@chavagne-KP236AA-ABF-a6460-fr:~$ avl
Erreur de segmentation

Now i have this :

chavagne@chavagne-KP236AA-ABF-a6460-fr:~/Avl$ ls -n

total 124

-rwxr-xr-x 1 1000 1000 74641 2008-05-24 02:50 avl_doc.txt

drwxr-xr-x 2 1000 1000 4096 2004-05-11 07:29 bin

drwxr-xr-x 2 1000 1000 4096 2004-05-11 07:23 eispack

drwx
7 1000 1000 4096 2011-05-21 17:44 plotlib

-rw-r--r-- 1 1000 1000 897 2004-06-08 19:38 README

drwxr-xr-x 2 1000 1000 4096 2008-05-24 01:15 runs

-rw-r--r-- 1 1000 1000 3493 2004-09-01 04:54 session1.txt

-rw-r--r-- 1 1000 1000 2462 2004-10-16 18:25 session2.txt

drwxr-xr-x 2 1000 1000 4096 2008-05-24 02:54 src

-rw-r--r-- 1 1000 1000 14094 2008-05-24 02:58 version_notes.txt


chavagne@chavagne-KP236AA-ABF-a6460-fr:~$ strace avl

execve("/usr/bin/avl", ["avl"], [/* 40 vars */]) = 0

brk(0) = 0xc019000

access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)

mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff9bb74f000

access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff9bb74e000

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff9bb74d000

arch_prctl(ARCH_SET_FS, 0x7ff9bb74e680) = 0

--- SIGSEGV (Segmentation fault) @ 0 (0) ---

+++ killed by SIGSEGV +++

Erreur de segmentation


Thanks for the help

jean

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #5518 by Claus
Replied by Claus on topic Re:avl Erreur de segmentation
Ok, you've downloaded a version of 'avl', but you're still trying to run the one you copied from caelinux2009. To run the one you downloaded, you must change to the folder Avl/bin and run the program with ./avl note the ./

(and delete /usr/bin/avl to avoid confusion ;) )

See installation instructions (readme) in case the avl you downloaded needs anything special.

bon courage!

Code_Aster release : STA11.4 on OpenSUSE 12.3 64 bits - EDF/Intel version

Please Log in or Create an account to join the conversation.

  • chavagne jean
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
10 years 3 weeks ago #5520 by chavagne jean
Replied by chavagne jean on topic Re:avl Erreur de segmentation
I download the latest avl

drwxr-xr-x 7 17837 65534 4096 2010-09-14 15:02 Avl
-rw-r--r-- 1 1000 1000 493973 2011-04-06 23:28 avl3.31.tgz
-rw-r--r-- 1 0 0 493973 2011-04-06 23:28 avl3.31.tgz.1

I follow the build sequence from Readme

chavagne@chavagne-KP236AA-ABF-a6460-fr:~$ cd plotlib
chavagne@chavagne-KP236AA-ABF-a6460-fr:~/plotlib$ edit makefile
Warning: unknown mime-type for "makefile" -- using "application/octet-stream"
Error: no "edit" mailcap rules found for type "application/octet-stream"

What can i do?

Have a nice day

jean

Please Log in or Create an account to join the conversation.

More
10 years 2 weeks ago #5521 by Claus
Replied by Claus on topic Re:avl Erreur de segmentation
When the Readme mentions 'edit Makefile' it really means 'use you favorite editor to edit the file' ;) You can use gEdit, nano, kate or whatever editor you favor.

As far as I can see, you don't need to change anything in plotlib/Makefile, but you might have to change FC = ifort to FC = gfortran in eispack/Makefile if you don't have Intel compilers installed.

In bin/Makefile you might want to change BINDIR = /home/codes/bin to the actual path of the AVL/bin folder - i.e. where you unpacked it.
You also might want to change FC = f77 to FC = gfortran

I say 'might' a lot, because it depends on you system.

Give it a try :)

Code_Aster release : STA11.4 on OpenSUSE 12.3 64 bits - EDF/Intel version

Please Log in or Create an account to join the conversation.

Moderators: catux
Time to create page: 0.144 seconds
Powered by Kunena Forum