[Scilab-Dev] ampl toolbox

Sylvestre Ledru sylvestre.ledru at scilab.org
Fri Apr 15 21:13:58 CEST 2011


Le vendredi 15 avril 2011 à 15:03 -0400, Jean-Pierre Dussault a écrit :
> Hello,
> 
> I still have problems, can't use the ampl toolbox under 5.3.1/ubuntu.
> I installed the atom (ampl 1.2.1) and next, when starting scilab, I
> get the message:
>         Start AMPL Toolbox
>             Load gateways
>         atomsLoad: An error occurred while loading
>         'ampl_toolbox-1.2-1':
>             addinter: The shared archive was not
>         loaded: /home/dussault/import/TstScilab/scilab-5.3.1_64/share/scilab/contrib/ampl_toolbox/1.2-1/sci_gateway/c//libampl_c.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
> No more success with
> http://atoms.scilab.org/toolboxes/ampl_toolbox/1.3, not compatible
> with my 64 bits installation
>         addinter(libampl_c_path
>         +'/libampl_c.so','libampl_c',list_functions);
>                                                                             !--error 236 
>         addinter: The shared archive was not
>         loaded: /home/dussault/import/TstScilab/scilab-5.3.1_64/share/scilab/contrib/ampl_toolbox_1.3/sci_gateway/c//libampl_c.so: mauvaise classe ELF: ELFCLASS32
You are trying to load a 32 bits package on a 64 bits system.

You can build it yourself with the following commands (testing under
Debian):
$ wget
http://atoms.scilab.org/toolboxes/ampl_toolbox/1.3/files/ampl-1.3.zip
$ unzip ampl-1.3.zip 
$ cd ampl-1.3/src/c
$ ./configure # you will probably get tonnes of errors
$ make 
$ cp sys.x86_64.Linux/amplsolver.a .
$ sed -i -e "s|ampl_eval_spst_g_val|ampl_eval_spst_w_val|g"
help/en_US/ampl_eval_spst_w_val.xml
$ cd ../..
$ scilab -f builder.sce -nw

Sylvestre





More information about the dev mailing list