Results 1 to 7 of 7
Hi,
I need to use a tool for a university homework. My problem is that the package contains 4 executables :
stanv3.linux,
stanv3s.linux,
stanv3.sparc,
stanv3s.sparc
You can find the files ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-20-2011 #1Just Joined!
- Join Date
- Dec 2008
- Posts
- 5
Execute program
Hi,
I need to use a tool for a university homework. My problem is that the package contains 4 executables :
stanv3.linux,
stanv3s.linux,
stanv3.sparc,
stanv3s.sparc
You can find the files here:
planning.cis.strath.ac.uk/ STAN/ code/ stan.v3.tar.gz
In my ubuntu enviroment, the last two seem green (executable) when i use ls command, but the first two (the ones that i actually need) not.
I used chmod but i still can not run those files.
Does anyone have any clue?
Thanks in advace!
- 11-20-2011 #2
hi,
we dont answer homework questions here, but you are not there yet.
What is the output of:
Code:ls -la stanv3* file stanv3*
You must always face the curtain with a bow.
- 11-20-2011 #3Just Joined!
- Join Date
- Dec 2008
- Posts
- 5
Hi, thanks for you reply.
Here is my output:
and:Code:laptop@laptop-VGN-FW21M:~/Desktop/planner/STAN.V3$ ls -la stanv3* -rw-r--r-- 1 laptop laptop 186440 1999-01-06 12:37 stanv3.linux -rw-r--r-- 1 laptop laptop 258096 1999-01-06 12:37 stanv3s.linux -rwxr-xr-x 1 laptop laptop 251824 1999-01-06 12:36 stanv3.sparc -rwxr-xr-x 1 laptop laptop 323792 1999-01-06 12:37 stanv3s.sparc
Code:laptop@laptop-VGN-FW21M:~/Desktop/lanner/STAN.V3$ file stanv3* stanv3.linux: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped stanv3s.linux: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped stanv3.sparc: ELF 32-bit MSB executable, SPARC, version 1 (SYSV), dynamically linked (uses shared libs), stripped stanv3s.sparc: ELF 32-bit MSB executable, SPARC, version 1 (SYSV), dynamically linked (uses shared libs), stripped
- 11-20-2011 #4
ok, the x-bits are missing.
This should fix it:
You can call executeables outside $PATH by giving the path.Code:chmod 755 stanv3.linux stanv3s.linux
Either of these should work
Code:cd ~/Desktop/planner/STAN.V3 ./stanv3.linux or ~/Desktop/planner/STAN.V3/stanv3.linux
You must always face the curtain with a bow.
- 11-20-2011 #5Just Joined!
- Join Date
- Dec 2008
- Posts
- 5
I tried it before but:
Code:laptop@laptop-VGN-FW21M:~/Desktop/planner/STAN.V3$ ls -la stanv3* -rwxr-xr-x 1 laptop laptop 186440 1999-01-06 12:37 stanv3.linux -rwxr-xr-x 1 laptop laptop 258096 1999-01-06 12:37 stanv3s.linux -rwxr-xr-x 1 laptop laptop 251824 1999-01-06 12:36 stanv3.sparc -rwxr-xr-x 1 laptop laptop 323792 1999-01-06 12:37 stanv3s.sparc
Code:laptop@laptop-VGN-FW21M:~/Desktop/planner/STAN.V3$ ./stanv3.linux bash: ./stanv3.linux: No such file or directory
- 11-20-2011 #6
hmm,
I checked the tarball on a 32bit fedora16 vm
(After creating a snapshot of course.
The site looks legit,but better safe than sorry
)
On this system, the error is different:
stanv3.linux and stanv3s are *both* dynamically linked.Code:./stanv3s.linux bash: ./stanv3s.linux: /lib/ld-linux.so.1: bad ELF interpreter: No such file or directory
Probably the "s" shall indicate a static binary, but it is not.
They both need the same libs and versions:
So my guess is, that you need to ask forCode:[tester@fedora16 STAN.V3]$ ldd stanv3*.linux stanv3.linux: linux-gate.so.1 => (0x00662000) libg++.so.27 => not found libstdc++.so.27 => not found libm.so.5 => not found libc.so.5 => not found stanv3s.linux: linux-gate.so.1 => (0x00f49000) libg++.so.27 => not found libstdc++.so.27 => not found libm.so.5 => not found libc.so.5 => not found
- the sources and compile yourself
- or another binary, more suitable for modern OSsYou must always face the curtain with a bow.
- 11-20-2011 #7Just Joined!
- Join Date
- Dec 2008
- Posts
- 5
I see... Actually i found some source code, tried to compile, but could not, even with some changes in the makefile and sources. I seems like a lib problem as well. Thanks for you help, i really enjoyed the ldd command


Reply With Quote
