libgfortran.so.3

announcements (new versions, changes, bugs, installation problems...) related to program MARK

libgfortran.so.3

Postby efraingatuzz » Thu May 26, 2011 7:19 pm

Hi,
When I tried to run mark, after make it executable, gives me the next error:

"./mark: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory"

When I use "ldd mark" gives me the next one ouput:

"
user@user:~/Escritorio/MARK$ ldd mark
linux-gate.so.1 => (0xf77d6000)
libgfortran.so.3 => not found
libm.so.6 => /lib32/libm.so.6 (0xf77a1000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7794000)
libc.so.6 => /lib32/libc.so.6 (0xf7641000)
/lib/ld-linux.so.2 (0xf77d7000)"

How I can fix that error?

Thanks
efraingatuzz
 
Posts: 1
Joined: Thu May 26, 2011 4:51 pm

Re: libgfortran.so.3

Postby cooch » Thu May 26, 2011 7:49 pm

Linux executables can be created using either dynamically loaded libraries, or with the libraries compiled in. For most Linux distributions, the dynamic load executable works fine -- since the library files are in locations where MARK knows to look. If they needed libraries aren't there, then MARK throws the sort of error you describe. You can use ldd to find out what libraries MARK depends on, and the use various approaches to point MARK at the locations for the libs on your machine.

One solution is to compile the libs in statically. The only obvious downside in normal practice is that the executable becomes significantly larger as a result. But, that is perhaps not a significant problem. What has turned out to be a problem is that the statically compiled executables that I've created, and tried, seems to be *twitchy*. It either works, or doesn't, depending on the platform on which its run, for reasons which I don't completely understand. Of course, they always work fine on my machines, which are the machines under which I do the compilations in the first place. With the advent of decent virtualization tools (like VirtualBox, which is superb), there is nothing to prevent me from compiling a distro-specific version of the executable, using either dynamic or static libs. Nothing preventing me, except...time. Its on my list of things to do, but that won't happen until August.

Now, to your specific problem, the error suggests you don't have all the gfortran (and probably c++ and related) development libs needed by MARK. Use yum, or apt, or whatever you use for package management, and download/install everything related to gfortran (at the least). When the package manager tries to accommodate the dependencies, it will probably download and install everything else you need at the same time. Can't help more than that at this point, I'm afraid.
cooch
 
Posts: 1654
Joined: Thu May 15, 2003 4:11 pm
Location: Cornell University


Return to software problems/news

Who is online

Users browsing this forum: No registered users and 1 guest