Find the answer to your Linux question:
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.
  1. #1
    Just 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!

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,387
    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.

  3. #3
    Just Joined!
    Join Date
    Dec 2008
    Posts
    5
    Hi, thanks for you reply.

    Here is my output:

    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
    and:

    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

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,387
    ok, the x-bits are missing.
    This should fix it:
    Code:
    chmod 755 stanv3.linux stanv3s.linux
    You can call executeables outside $PATH by giving the path.
    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.

  5. #5
    Just 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

  6. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,387
    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:
    Code:
    ./stanv3s.linux 
    bash: ./stanv3s.linux: /lib/ld-linux.so.1: bad ELF interpreter: No such file or directory
    stanv3.linux and stanv3s are *both* dynamically linked.
    Probably the "s" shall indicate a static binary, but it is not.

    They both need the same libs and versions:
    Code:
    [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
    So my guess is, that you need to ask for
    - the sources and compile yourself
    - or another binary, more suitable for modern OSs
    You must always face the curtain with a bow.

  7. #7
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •