Search code examples
eclipseomnet++veins

Getting an error "error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory"


Getting an error "error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory" while running veins simulation in Omnet++

enter image description here

EDIT:

I reinstalled the omnet++ and now I am getting this error:

JVM terminated. Exit code=13
/home/jayabalan/usr/omnetpp-4.6/ide/jre/bin/java
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
-XX:MaxPermSize=320m
-Dosgi.instance.area.default=/home/jayabalan/usr/omnetpp-4.6/bin/../ide/../samples
-jar /home/jayabalan/usr/omnetpp-4.6/ide//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/jayabalan/usr/omnetpp-4.6/ide/omnetpp
-name OMNeT++ IDE
--launcher.library /home/jayabalan/usr/omnetpp-4.6/ide//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/eclipse_1605.so
-startup /home/jayabalan/usr/omnetpp-4.6/ide//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.appendVmargs
-exitdata 340021
-vm /home/jayabalan/usr/omnetpp-4.6/ide/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
-XX:MaxPermSize=320m
-Dosgi.instance.area.default=/home/jayabalan/usr/omnetpp-4.6/bin/../ide/../samples
-jar /home/jayabalan/usr/omnetpp-4.6/ide//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar 

Solution

  • Second error:

    The almost certainly a Java SDK/JDK version problem or path problem preventing the Eclispe enviroment from starting.

    Check your Java version:

    $ java -version
    

    Because of the

    -Dosgi.requiredJavaVersion=1.7
    

    output in the error log suggest its looking for 1.7.

    Then check this post describing many solutions to this problem:

    Can't start Eclipse - Java was started but returned exit code=13