[opensuse] failed qgis rpm
Running opensuse 11.3 on a dual core pc. Not sure whether this is an opensuse or qgis problem - When attempting to launch qgis, i get the following error: qgis: error while loading shared libraries: libnetcdf.so.4: cannot open shared object file: No such file or directory. Qgis, netcdf,gdal1, etc were all installed via rpm. The above shared library is in my path, but still no luck. Anyone have an idea what might be amiss? Thanks! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 24 Nov 2010 14:13:16 -0400, Gerald H Seibert <sos@eastlink.ca> wrote:
Running opensuse 11.3 on a dual core pc.
32 or 64 bit (i.e. i586 or x86-64)?
Qgis, netcdf,gdal1, etc were all installed via rpm. The above shared library is in my path,
Where? There are two types of libraries, 32 bit ones in /lib and /usr/lib and 64 bit ones in /lib64 and /usr/lib64. 64 bit binaries need 64 bit libraries and then same holds for 32 bit. Do a 'ldd $(which qgis)' and see if ldd finds all needed libraries. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On November 24, 2010 16:16:34 Philipp Thomas wrote:
On Wed, 24 Nov 2010 14:13:16 -0400, Gerald H Seibert <sos@eastlink.ca>
wrote:
Running opensuse 11.3 on a dual core pc.
32 or 64 bit (i.e. i586 or x86-64)?
Qgis, netcdf,gdal1, etc were all installed via rpm. The above shared library is in my path,
Where? There are two types of libraries, 32 bit ones in /lib and /usr/lib and 64 bit ones in /lib64 and /usr/lib64. 64 bit binaries need 64 bit libraries and then same holds for 32 bit.
Do a 'ldd $(which qgis)' and see if ldd finds all needed libraries.
Philipp Thanks - running 64 bit(x86-64). The only reference I have been able to find to the file is in /opt/netcdf3/lib64, even though i also installed netcdf4.1.1. Running your command 'ldd$(which qgis) gives me a bunch of libraries in addition to this :libnetcdf.so.4 => not found So i'm not any further ahead on how to fix this! Any suggestions? Gerald -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 24 Nov 2010 19:39:20 -0400, Gerald H Seibert <sos@eastlink.ca> wrote:
Thanks - running 64 bit(x86-64). The only reference I have been able to find to the file is in /opt/netcdf3/lib64
Which is a place the runtime linker (a program that connects binaries with shared libraries) won't see. Add that path to /etc/ld.so.conf, run ldconfig and afterwards all should run as expected.
even though i also installed netcdf4.1.1.
From where did you take it? And in what form did you install it (self compiled, rpm etc.)? I ask because /opt is only for 3rd party software vendors. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On November 24, 2010 23:56:03 Philipp Thomas wrote:
On Wed, 24 Nov 2010 19:39:20 -0400, Gerald H Seibert <sos@eastlink.ca>
wrote:
Thanks - running 64 bit(x86-64). The only reference I have been able to find to the file is in /opt/netcdf3/lib64
Which is a place the runtime linker (a program that connects binaries with shared libraries) won't see. Add that path to /etc/ld.so.conf, run ldconfig and afterwards all should run as expected.
even though i also installed netcdf4.1.1.
From where did you take it? And in what form did you install it (self compiled, rpm etc.)? I ask because /opt is only for 3rd party software vendors.
Philipp The files (binary rpm) were retrieved from the download.opensuse.org/repo/Application:/Geo/opensuse_11.3 so I assumed that when installing , the linking etc would be looked after.! Looking into /etc/ld.so.conf, surprise, the path to the file is in it, yest qgis still complains about not finding the file. Gerald -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 25 Nov 2010 13:43:33 -0400, Gerald H Seibert <sos@eastlink.ca> wrote: Ok , seems like I have to be more precise in asking. Please show the output of rpm --queryformat '%{NAME}: %{ARCH}\n' -q qgis netcdf Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On November 27, 2010 09:37:01 Philipp Thomas wrote:
On Thu, 25 Nov 2010 13:43:33 -0400, Gerald H Seibert <sos@eastlink.ca> wrote:
Ok , seems like I have to be more precise in asking. Please show the output of
rpm --queryformat '%{NAME}: %{ARCH}\n' -q qgis netcdf
Philipp rpm --queryformat '%{NAME}: %{ARCH}\n' -q qgis netcdf qgis: x86_64 netcdf: x86_64
btw -all installed via yast Gerald -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 27 Nov 2010 21:28:59 -0400, Gerald H Seibert <sos@eastlink.ca> wrote:
rpm --queryformat '%{NAME}: %{ARCH}\n' -q qgis netcdf qgis: x86_64 netcdf: x86_64
Hmm, everything OK. Then let's try strace -f -o qgis.trace -e trace=file the trace in qgis.trace should show where ld.do is searching for the library. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On November 28, 2010 05:46:46 Philipp Thomas wrote:
On Sat, 27 Nov 2010 21:28:59 -0400, Gerald H Seibert <sos@eastlink.ca>
wrote:
rpm --queryformat '%{NAME}: %{ARCH}\n' -q qgis netcdf qgis: x86_64 netcdf: x86_64
Hmm, everything OK. Then let's try
strace -f -o qgis.trace -e trace=file
the trace in qgis.trace should show where ld.do is searching for the library.
Philipp Had to make a small change to the above:
strace -f qgis -o qgis.trace -e trace=file I have appended the "relevant" section, which shows(?) that its looking for the library in /lib64.. open("/lib64/tls/x86_64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/lib64/tls/x86_64", 0x7fffd8ae76b0) = -1 ENOENT (No such file or directory) open("/lib64/tls/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/lib64/tls", 0x7fffd8ae76b0) = -1 ENOENT (No such file or directory) open("/lib64/x86_64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/lib64/x86_64", 0x7fffd8ae76b0) = -1 ENOENT (No such file or directory) open("/lib64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/lib64", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0 open("/usr/lib64/tls/x86_64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/usr/lib64/tls/x86_64", 0x7fffd8ae76b0) = -1 ENOENT (No such file or directory) open("/usr/lib64/tls/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/usr/lib64/tls", 0x7fffd8ae76b0) = -1 ENOENT (No such file or directory) open("/usr/lib64/x86_64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/usr/lib64/x86_64", 0x7fffd8ae76b0) = -1 ENOENT (No such file or directory) open("/usr/lib64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/usr/lib64", {st_mode=S_IFDIR|0755, st_size=151552, ...}) = 0 writev(2, [{"qgis", 4}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libnetcdf.so.4", 14}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10qgis: error while loading shared libraries: libnetcdf.so.4: cannot open shared object file: No such file or directory Gerald -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Gerald H Seibert (sos@eastlink.ca) [20101128 19:56]:
that its looking for the library in /lib64..
ld.so searches in all configured directories one by one until it either succeeds or fails.
open("/lib64/tls/x86_64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib64/tls/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or > directory) open("/lib64/x86_64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) [...] open("/usr/lib64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
And here it's trying to load the library from the right directory but fails to do so. Do you have the package libnetcdf4 installed? Otherwise do as root 'zypper in libnetcdf4'. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On November 29, 2010 13:52:06 Philipp Thomas wrote:
* Gerald H Seibert (sos@eastlink.ca) [20101128 19:56]:
that its looking for the library in /lib64..
ld.so searches in all configured directories one by one until it either succeeds or fails.
open("/lib64/tls/x86_64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib64/tls/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or > directory) open("/lib64/x86_64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
[...]
open("/usr/lib64/libnetcdf.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
And here it's trying to load the library from the right directory but fails to do so. Do you have the package libnetcdf4 installed? Otherwise do as root 'zypper in libnetcdf4'.
Philipp zypper in libnetcdf4 Retrieving repository 'openSUSE-11.3-Update' metadata [done] Building repository 'openSUSE-11.3-Update' cache [done] Loading repository data... Reading installed packages... 'libnetcdf4' is already installed. No update candidate for 'libnetcdf4-4.1.1-16.5.x86_64'. The highest available version is already installed. Resolving package dependencies...
Nothing to do. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Gerald H Seibert <sos@eastlink.ca> [11-29-10 15:36]:
On November 29, 2010 13:52:06 Philipp Thomas wrote:
And here it's trying to load the library from the right directory but fails to do so. Do you have the package libnetcdf4 installed? Otherwise do as root 'zypper in libnetcdf4'.
zypper in libnetcdf4 Retrieving repository 'openSUSE-11.3-Update' metadata [done] Building repository 'openSUSE-11.3-Update' cache [done] Loading repository data... Reading installed packages... 'libnetcdf4' is already installed. No update candidate for 'libnetcdf4-4.1.1-16.5.x86_64'. The highest available version is already installed.
try: zypper in -f libnetcdf4 this will *reinstall* the existing package which, perhaps, is not whole. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On November 29, 2010 16:52:59 Patrick Shanahan wrote:
* Gerald H Seibert <sos@eastlink.ca> [11-29-10 15:36]:
On November 29, 2010 13:52:06 Philipp Thomas wrote:
And here it's trying to load the library from the right directory but fails to do so. Do you have the package libnetcdf4 installed? Otherwise do as root 'zypper in libnetcdf4'.
zypper in libnetcdf4
Retrieving repository 'openSUSE-11.3-Update' metadata [done] Building repository 'openSUSE-11.3-Update' cache [done] Loading repository data... Reading installed packages... 'libnetcdf4' is already installed. No update candidate for 'libnetcdf4-4.1.1-16.5.x86_64'. The highest available version is already installed.
try: zypper in -f libnetcdf4
this will *reinstall* the existing package which, perhaps, is not whole. Tried that : zypper in -f libnetcdf4 Retrieving repository 'openSUSE-11.3-Update' metadata [done] Building repository 'openSUSE-11.3-Update' cache [done] Loading repository data... Reading installed packages... Forcing installation of 'libnetcdf4-4.1.1-16.5.x86_64' from repository '@System'. Resolving package dependencies...
Nothing to do. Doesn't seem that i'm any further ahead - but open to any other suggestions! Gerald -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Gerald H Seibert <sos@eastlink.ca> [11-30-10 11:28]:
Tried that : zypper in -f libnetcdf4 Retrieving repository 'openSUSE-11.3-Update' metadata [done] Building repository 'openSUSE-11.3-Update' cache [done] Loading repository data... Reading installed packages... Forcing installation of 'libnetcdf4-4.1.1-16.5.x86_64' from repository '@System'. Resolving package dependencies...
Nothing to do. Doesn't seem that i'm any further ahead - but open to any other suggestions!
Looks like it is not reinstalling libnetcdf4. You might try brute force, but just to be safe, download the package, libnetcdf4, first. cd to the directory containing the rpm. rpm -e --force libnetcdf4 rpm -i ./libnetcdf4-1.1-16.5.x86_64.rpm SuSEconfig; ldconfig -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On November 30, 2010 13:29:18 Patrick Shanahan wrote:
* Gerald H Seibert <sos@eastlink.ca> [11-30-10 11:28]:
Tried that : zypper in -f libnetcdf4 Retrieving repository 'openSUSE-11.3-Update' metadata [done] Building repository 'openSUSE-11.3-Update' cache [done] Loading repository data... Reading installed packages... Forcing installation of 'libnetcdf4-4.1.1-16.5.x86_64' from repository '@System'. Resolving package dependencies...
Nothing to do. Doesn't seem that i'm any further ahead - but open to any other suggestions!
Looks like it is not reinstalling libnetcdf4. You might try brute force, but just to be safe, download the package, libnetcdf4, first. cd to the directory containing the rpm.
rpm -e --force libnetcdf4 rpm -i ./libnetcdf4-1.1-16.5.x86_64.rpm SuSEconfig; ldconfig Seems I'm the culprit (well sort of). I had upgraded libnetcdf4 to 4.1.1, when in fact qgis wanted 4.0.1, however there was no warning about the loss of dependencies. Re-installed libnetcdf4 4.0.1-6.1 and every thing works as it should. Many thanks to those who tried to help! Gerald -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On December 1, 2010 19:48:30 Philipp Thomas wrote:
On Wed, 01 Dec 2010 13:41:12 -0400, Gerald H Seibert <sos@eastlink.ca>
wrote:
I had upgraded libnetcdf4 to 4.1.1
Where did you get that one?
Philipp Had to search for it as it does not appear in the yast repositories that i have enabled.
http://download.opensuse.org/repositories/home:/ocefpaf/openSUSE_11.3/x86_64... Gerald -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 02 Dec 2010 14:52:07 -0400, Gerald H Seibert <sos@eastlink.ca> wrote:
http://download.opensuse.org/repositories/home:/ocefpaf/openSUSE_11.3/x86_64...
The general rule is: stay away from home projects unless you do trust the person owning it. Home projects are uncontrolled playgrounds of their owners and there is a reason why the search on opensuse.org was changed to not search home projects by default. You just learned the reason why. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On December 2, 2010 21:21:01 Philipp Thomas wrote:
On Thu, 02 Dec 2010 14:52:07 -0400, Gerald H Seibert <sos@eastlink.ca>
wrote:
http://download.opensuse.org/repositories/home:/ocefpaf/openSUSE_11.3/x86_ 64/
The general rule is: stay away from home projects unless you do trust the person owning it. Home projects are uncontrolled playgrounds of their owners and there is a reason why the search on opensuse.org was changed to not search home projects by default. You just learned the reason why.
Philipp I sort of knew that - but i guess i was toooo greedy! Gerald -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Gerald H Seibert
-
Patrick Shanahan
-
Philipp Thomas
-
Philipp Thomas