Precompiled Executable
Hello,
I have just installed Linux (Slackware 12.1) for the first time today with good success. I have been provided with a precompiled Linux executable for a Monte Carlo routine I would like to run. I have no idea how to execute this file. Clicking on it doesn't seem to do the trick. It was not provided as a package, so I can't get the package manager to do anything with it. Running this Monte Carlo program was my primary motivation for trying out Linux. It can take many hours to run some problems, and I was getting tired of Windows hogging up my resources. I am expecting better performance and shorter run times with Linux. Any help is most appreciated. Best regards, GL Columbia, SC |
What is the name of the file (or files you installed)?
Often packages are designed to be installed by a package manager like RPM on RedHat or Apt on Debian. Other times they are "bundled" tar files which are usually compressed. The file name will often indicate what type of file it is (e.g. files ending in .rpm are RPM packages, files ending in .tar.gz are gzipped [compressed] tar archives. Also at command line if you type the command "file <filename>" it should tell you what kind of file it is. |
Quote:
Quote:
|
The installation file is a tgz file. The program is MCNP, and the installation instructions are simply:
3. MCNP5.tgz Short Guide to new installation of MCNP5.1.40: The executable created is called mcnp5_rsicc_1.40_linux_intel.exe. Thanks for your help. GL |
Since it says it will create "MCNP5/bin" directory rather than "/MCNP5/bin" it means the directory is relative to where you installed it (e.g. your home directory so it would be "/home/<yourhome>/MCNP5/bin".
.exe is a Windows type of extension for executables. Linux and UNIX don't require specific suffixes to make files executable. They do require the file to have the execute mode bits be set with the chmod command. Since it came out of a tar it likely already has that. Type the command "file mcnp5_rsicc_1.40_linux_intel.exe" to be sure it tells you it is an executable (typically an ELF executable). If it tells you data or something else it could be a sign it is NOT compiled for your system type. Their statement that it would work on UNIX is a little broad. Solaris can run on SPARC RISC chips. HP-UX runs on PA-RISC chips. AIX runs on a different chip and all of these are different from Intel chips. One compiled for any one of these will NOT work on any of the others. Ideally they mean it would run on BSD or other Intel based UNIX types. Linux is a clone of UNIX. However, even if it was compiled for Intel it might not work if it uses shared libraries because each of the different kinds of OS have differences in what the way they run. Did you in fact add the MNCP5/bin to your PATH variable? (using full path as described above rather than relative path). It may be this executable calls other executables in that directory but can't find them. Assuming file indicated it is an executable what happens if you cd to the directory the file is in then type: ./mcnp5_rsicc_1.40_linux_intel.exe then hit enter? |
All times are GMT -5. The time now is 04:48 PM. |