Running AMPL under LInux ( ubuntu)

533 views
Skip to first unread message

Soukaina Sema

unread,
Feb 9, 2016, 10:19:36 AM2/9/16
to AMPL Modeling Language
Dear mailing list,
I plan to use AMPL  under a Linux system ( Ubuntu 15.10, 64bits), I have succeed the installation process but when I run the  command "./amplide " i got the following error:


~/amplide$ ./amplide
Launcher:
An error has occurred. See the log file
/home/soukaina/amplide/configuration/1455030660770.log.




the requested file look like this:

Command-line arguments:  -os linux -ws gtk -arch x86

!ENTRY org.eclipse.osgi 4 0 2016-02-09 14:57:03.439
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
    /home/soukaina/amplide/configuration/org.eclipse.osgi/bundles/111/1/.cp/libswt-pi-gtk-4333.so: libgtk-x11-2.0.so.0: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
    no swt-pi-gtk in java.library.path
    /home/soukaina/.swt/lib/linux/x86/libswt-pi-gtk-4333.so: libgtk-x11-2.0.so.0: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
    Can't load library: /home/soukaina/.swt/lib/linux/x86/libswt-pi-gtk.so

    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
    at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:31)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
    at org.eclipse.swt.widgets.Display.<clinit>(Display.java:133)
    at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:675)
    at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
    at com.amplide.rcp.Application.start(Application.java:68)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450)



any ideas why it could not be opened!!!!
Thanks in advanced and have a good day!

Victor Zverovich

unread,
Feb 9, 2016, 3:50:20 PM2/9/16
to am...@googlegroups.com
The error indicates that libgtk-x11-2.0.so.0 cannot be found. Please make sure that you have GTK libraries installed on your machine. For example, in Ubuntu you can find a package providing libgtk-x11-2.0.so.0 with the apt-file command:

  > apt-file find libgtk-x11-2.0.so.0
  libgtk2.0-0: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0

HTH,
Victor

--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.

Soukaina Sema

unread,
Feb 15, 2016, 6:28:17 AM2/15/16
to AMPL Modeling Language
Hello Mr Victor,
First thank you very much for yr help.
I used the command you gave me and i got this :

soukaina@soukaina-Aspire-5250:~$ cd amplide
soukaina@soukaina-Aspire-5250:~/amplide$ ./amplide

Launcher:
An error has occurred. See the log file
/home/soukaina/amplide/configuration/1455535356157.log.
soukaina@soukaina-Aspire-5250:~/amplide$ apt-file find libgtk-x11-2.0.so.0
libgtk2.0-0: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
libgtk2.0-0: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.29
libgtk2.0-0-dbg: /usr/lib/debug/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.29
soukaina@soukaina-Aspire-5250:~/amplide$ apt-file find libgtk-x11-2.0.so.0
libgtk2.0-0: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
libgtk2.0-0: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.29
libgtk2.0-0-dbg: /usr/lib/debug/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.29
soukaina@soukaina-Aspire-5250:~/amplide$   libgtk2.0-0: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
libgtk2.0-0: : commande introuvable
soukaina@soukaina-Aspire-5250:~/amplide$
soukaina@soukaina-Aspire-5250:~/amplide$ apt-file find libgtk-x11-2.0.so.0
libgtk2.0-0: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
libgtk2.0-0: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.29
libgtk2.0-0-dbg: /usr/lib/debug/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.29
soukaina@soukaina-Aspire-5250:~/amplide$   libgtk2.0-0: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
libgtk2.0-0: : commande introuvable
soukaina@soukaina-Aspire-5250:~/amplide$
soukaina@soukaina-Aspire-5250:~/amplide$

 

Soukaina Sema

unread,
Feb 15, 2016, 7:23:47 AM2/15/16
to AMPL Modeling Language

I don't have the some problem anymore, maybe it's a path problem, i fix it but i got this now:

see the joined picture plz

thanks a lot!



  

ampl error.png

Robert Fourer

unread,
Feb 15, 2016, 11:53:01 AM2/15/16
to am...@googlegroups.com
The error message that you see (in the attached screenshot) is common; it appears when you have downloaded the AMPL IDE but it has not been installed in the right place. You will need to first locate your "AMPL folder", which is the one that contains "ampl.exe" (Windows) or the executable file "ampl" (Linux or MacOSX). Then place the folder named amplide -- which you got by following the instructions at www.ampl.com/IDE -- inside your "AMPL folder". After you have done this you can go inside the amplide folder and start the amplide application (Windows or Linux) or just double-click the amplide icon (MacOSX).

Complete instructions are given at http://ampl.com/products/ide/. This has fixed the problem in every case so far, but if you continue to have difficulties, let us know what platform you are using (Windows, Linux, or MacOSX) and where you downloaded your AMPL folder from. Also again send us a complete copy of the error messages you are getting.

AMPL Licensing Services
lice...@ampl.com

=======

Soukaina Sema

unread,
Feb 18, 2016, 5:47:39 AM2/18/16
to AMPL Modeling Language, 4...@ampl.com
Dear Mr Robert Fourer,

The error was fixed, it's exactly as you describe: The  AMPL IDE was not  installed in the right place + the executable file was not in the AMPL folder as well, i thought that the AMPL IDE contain it all as a full package.

Thanks a million for your precious help sir.

Have a good day!



Reply all
Reply to author
Forward
0 new messages