Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omnetpp: command not found #816

Closed
ruidazeng opened this issue May 7, 2020 · 4 comments
Closed

omnetpp: command not found #816

ruidazeng opened this issue May 7, 2020 · 4 comments

Comments

@ruidazeng
Copy link

Platform

  • OMNeT++ version: [e.g. 5.4]
  • OS: [e.g. Ubuntu 18.04]

Describe the bug
On a fresh installation, my omnetpp works fine. However, when I reboot the machine, the terminal will then give this error omnetpp: command not found when I type in omnetpp in an attempt to start the simulator.

I don't believe this is in the installation guide.

@ruidazeng ruidazeng added the new New issue that has not been yet acknowledged label May 7, 2020
@torokati44
Copy link
Member

Section 4.4 (Environment Variables) of the Installation Guide for OMNeT++ 5.6.1 says:

OMNeT++ needs its bin/ directory to be in the path. To add bin/ to PATH temporarily (in the current shell only), change into the OMNeT++ directory and source the setenv script

Emphasis mine. Further instructions on how to do this permanently follow in said document.

@torokati44 torokati44 added in documentation and removed new New issue that has not been yet acknowledged labels Jun 17, 2020
@Vonfry
Copy link

Vonfry commented Jul 22, 2020

I have the same problem and <omnetpp>/bin is already added to PATH in current shell.

ldd prints vdso, pthread, dl, libc which can be found. What did I miss? Or how do I debug the problem.

By the way, could I build ide locally(from git repo) instead of download the prebuild one(from release one)?

@torokati44
Copy link
Member

In the raw git repo there is no omnetpp executable (rather, launcher script) in the bin folder yet, it is copied there by make, by the utils target (which is a dependency of the default target too).

This is off-topic, but:
To build a release tarball from the git repo: cd releng; ./build-omnetpp-in-docker - you can edit the variable values in that script to customize the build. The result will be in the dist subdirectory.
To build the IDE in-place, invoke make ide in the root (there is no dependency tracking with this target, so to rebuild, either delete the ide folder beforehand, or add the -B option to make).
Both of these requires a running Docker daemon.

@Vonfry
Copy link

Vonfry commented Jul 29, 2020

Suggestion: add following description into document for generic linux,

  1. command not found may be caused by the interpreter of <omnetpp>/ide/omnetpp. This can be checked with readelf.
  2. some dynamic libraries' path (such as webkitgtk) should be in LD_LIBRARY_PATH or rpath of the dynamic libraries which are unpacked from jar.

@rhornig rhornig closed this as completed Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants