[arch-general] netcdf problem after arch update
Hi all, I have two tools that use libnetcdf.so.7. They were working fine earlier. I updated Arch using the 'pacman -Syy' and 'pacman -Su'. But after the update, both the tools are giving errors: Tool1 (gasflow) error: /home/foxtrot/project/gasflow-3.0/bin/xgf2: error while loading shared libraries: libnetcdf.so.7: cannot open shared object file: No such file or directory Toos2 (pyscan) error: ImportError: libnetcdf.so.7: cannot open shared object file: No such file or directory 'pacman -Ss netcdf' says: extra/netcdf 4.4.1rc1-1 [installed] network Common Data Form interface for array-oriented data access and corresponding library extra/netcdf-cxx 4.2-4 [installed] NetCDF c++ bindings extra/netcdf-fortran 4.4.3-1 [installed] NetCDF fortran bindings Quick response will be highly appreciated! Fulcrum
On 05/11/2016 12:12 PM, Fulcrum wrote:
Hi all,
I have two tools that use libnetcdf.so.7. They were working fine earlier. I updated Arch using the 'pacman -Syy' and 'pacman -Su'. But after the update, both the tools are giving errors:
Tool1 (gasflow) error: /home/foxtrot/project/gasflow-3.0/bin/xgf2: error while loading shared libraries: libnetcdf.so.7: cannot open shared object file: No such file or directory
Toos2 (pyscan) error: ImportError: libnetcdf.so.7: cannot open shared object file: No such file or directory
For future reference: [eschwartz@arch ~]$ pacman -Fsx 'libnetcdf\.so' extra/netcdf 4.4.1rc1-1 usr/lib/libnetcdf.so usr/lib/libnetcdf.so.12 usr/lib/libnetcdf.so.12.0.0 Rebuild your software against the latest version of netcdf. Since it wasn't installed from the Arch Linux repositories, it is your responsibility to update it and make sure it is properly rebuilt as packages get updated. -- Eli Schwartz
Thanks for the reply. Is is possible to revert back to the previous version of netcdf? Since one of the tools (pyscan) is a portable script, I don't know how can I 'rebuild' it to work with the newer version of netcdf. Also, I would prefer it very much to avoid rebuilding the other tool (gasflow) because it takes a long time, and various other difficulties (It has many other dependencies which may cause other problems). It was a headache to install it in the first place. On 05/12/2016 12:25 AM, Eli Schwartz wrote:
On 05/11/2016 12:12 PM, Fulcrum wrote:
Hi all,
I have two tools that use libnetcdf.so.7. They were working fine earlier. I updated Arch using the 'pacman -Syy' and 'pacman -Su'. But after the update, both the tools are giving errors:
Tool1 (gasflow) error: /home/foxtrot/project/gasflow-3.0/bin/xgf2: error while loading shared libraries: libnetcdf.so.7: cannot open shared object file: No such file or directory
Toos2 (pyscan) error: ImportError: libnetcdf.so.7: cannot open shared object file: No such file or directory
For future reference:
[eschwartz@arch ~]$ pacman -Fsx 'libnetcdf\.so' extra/netcdf 4.4.1rc1-1 usr/lib/libnetcdf.so usr/lib/libnetcdf.so.12 usr/lib/libnetcdf.so.12.0.0
Rebuild your software against the latest version of netcdf. Since it wasn't installed from the Arch Linux repositories, it is your responsibility to update it and make sure it is properly rebuilt as packages get updated.
Of course you can downgrade package if you want. https://wiki.archlinux.org/index.php/downgrading_packages On Wed, May 11, 2016 at 9:16 PM, Fulcrum <fulcrummike@hotmail.com> wrote:
Thanks for the reply.
Is is possible to revert back to the previous version of netcdf? Since one of the tools (pyscan) is a portable script, I don't know how can I 'rebuild' it to work with the newer version of netcdf.
Also, I would prefer it very much to avoid rebuilding the other tool (gasflow) because it takes a long time, and various other difficulties (It has many other dependencies which may cause other problems). It was a headache to install it in the first place.
On 05/12/2016 12:25 AM, Eli Schwartz wrote:
On 05/11/2016 12:12 PM, Fulcrum wrote:
Hi all,
I have two tools that use libnetcdf.so.7. They were working fine earlier. I updated Arch using the 'pacman -Syy' and 'pacman -Su'. But after the update, both the tools are giving errors:
Tool1 (gasflow) error: /home/foxtrot/project/gasflow-3.0/bin/xgf2: error while loading shared libraries: libnetcdf.so.7: cannot open shared object file: No such file or directory
Toos2 (pyscan) error: ImportError: libnetcdf.so.7: cannot open shared object file: No such file or directory
For future reference:
[eschwartz@arch ~]$ pacman -Fsx 'libnetcdf\.so' extra/netcdf 4.4.1rc1-1 usr/lib/libnetcdf.so usr/lib/libnetcdf.so.12 usr/lib/libnetcdf.so.12.0.0
Rebuild your software against the latest version of netcdf. Since it wasn't installed from the Arch Linux repositories, it is your responsibility to update it and make sure it is properly rebuilt as packages get updated.
On Wed, 11 May 2016 21:21:18 +0300 Ilya Boka <bokailya@gmail.com> wrote:
Of course you can downgrade package if you want. https://wiki.archlinux.org/index.php/downgrading_packages
Sure, breaking everything else that's using netcdf.
I feel stupid for not googling it.. Thanks! It solved the issue. On 05/12/2016 02:21 AM, Ilya Boka wrote:
Of course you can downgrade package if you want. https://wiki.archlinux.org/index.php/downgrading_packages
On Wed, May 11, 2016 at 9:16 PM, Fulcrum <fulcrummike@hotmail.com> wrote:
Thanks for the reply.
Is is possible to revert back to the previous version of netcdf? Since one of the tools (pyscan) is a portable script, I don't know how can I 'rebuild' it to work with the newer version of netcdf.
Also, I would prefer it very much to avoid rebuilding the other tool (gasflow) because it takes a long time, and various other difficulties (It has many other dependencies which may cause other problems). It was a headache to install it in the first place.
On 05/12/2016 12:25 AM, Eli Schwartz wrote:
On 05/11/2016 12:12 PM, Fulcrum wrote:
Hi all,
I have two tools that use libnetcdf.so.7. They were working fine earlier. I updated Arch using the 'pacman -Syy' and 'pacman -Su'. But after the update, both the tools are giving errors:
Tool1 (gasflow) error: /home/foxtrot/project/gasflow-3.0/bin/xgf2: error while loading shared libraries: libnetcdf.so.7: cannot open shared object file: No such file or directory
Toos2 (pyscan) error: ImportError: libnetcdf.so.7: cannot open shared object file: No such file or directory
For future reference:
[eschwartz@arch ~]$ pacman -Fsx 'libnetcdf\.so' extra/netcdf 4.4.1rc1-1 usr/lib/libnetcdf.so usr/lib/libnetcdf.so.12 usr/lib/libnetcdf.so.12.0.0
Rebuild your software against the latest version of netcdf. Since it wasn't installed from the Arch Linux repositories, it is your responsibility to update it and make sure it is properly rebuilt as packages get updated.
Thanks all for your suggestions. Since I had to run only a couple more simulations using gasflow, I downgraded netcdf. I will upgrade again to the latest model once the simulations complete to avoid dependency problems in the future. On 05/12/2016 03:06 AM, Fulcrum wrote:
I feel stupid for not googling it.. Thanks! It solved the issue.
On 05/12/2016 02:21 AM, Ilya Boka wrote:
Of course you can downgrade package if you want. https://wiki.archlinux.org/index.php/downgrading_packages
On Wed, May 11, 2016 at 9:16 PM, Fulcrum <fulcrummike@hotmail.com> wrote:
Thanks for the reply.
Is is possible to revert back to the previous version of netcdf? Since one of the tools (pyscan) is a portable script, I don't know how can I 'rebuild' it to work with the newer version of netcdf.
Also, I would prefer it very much to avoid rebuilding the other tool (gasflow) because it takes a long time, and various other difficulties (It has many other dependencies which may cause other problems). It was a headache to install it in the first place.
On 05/12/2016 12:25 AM, Eli Schwartz wrote:
On 05/11/2016 12:12 PM, Fulcrum wrote:
Hi all,
I have two tools that use libnetcdf.so.7. They were working fine earlier. I updated Arch using the 'pacman -Syy' and 'pacman -Su'. But after the update, both the tools are giving errors:
Tool1 (gasflow) error: /home/foxtrot/project/gasflow-3.0/bin/xgf2: error while loading shared libraries: libnetcdf.so.7: cannot open shared object file: No such file or directory
Toos2 (pyscan) error: ImportError: libnetcdf.so.7: cannot open shared object file: No such file or directory
For future reference:
[eschwartz@arch ~]$ pacman -Fsx 'libnetcdf\.so' extra/netcdf 4.4.1rc1-1 usr/lib/libnetcdf.so usr/lib/libnetcdf.so.12 usr/lib/libnetcdf.so.12.0.0
Rebuild your software against the latest version of netcdf. Since it wasn't installed from the Arch Linux repositories, it is your responsibility to update it and make sure it is properly rebuilt as packages get updated.
Le 11 mai 2016 20:16:54 GMT+02:00, Fulcrum <fulcrummike@hotmail.com> a écrit :
Thanks for the reply.
Is is possible to revert back to the previous version of netcdf? Since one of the tools (pyscan) is a portable script, I don't know how can I 'rebuild' it to work with the newer version of netcdf.
Also, I would prefer it very much to avoid rebuilding the other tool (gasflow) because it takes a long time, and various other difficulties (It has many other dependencies which may cause other problems). It was
a headache to install it in the first place.
That’s not supported (means you wont get help for related issues) nor recommended, but if you have exactly 0 other packages on your system depending on netcdf, you can use the ArchLinuxArchive to downgrade. But since the very popular ffmpeg package does depend on it for instance, I highly doubt you won’t have any such package. Donwgrading netcdf would break those. Or, you might also downgrade the other packages, or rebuild them yourself against the older netcdf. Anyway, that will soon be quite a maintenance burden. That’s partly why it’s not recommended. ;) Bruno
On 05/11/2016 02:16 PM, Fulcrum wrote:
Thanks for the reply.
Is is possible to revert back to the previous version of netcdf? Since one of the tools (pyscan) is a portable script, I don't know how can I 'rebuild' it to work with the newer version of netcdf.
Also, I would prefer it very much to avoid rebuilding the other tool (gasflow) because it takes a long time, and various other difficulties (It has many other dependencies which may cause other problems). It was a headache to install it in the first place.
While it is certainly possible to downgrade a package manually (see the Wiki link Ilya provided), Arch doesn't support partial upgrades. So this may not be a great long-term solution, since it will break the repository packages which depend on netcdf. You may be able to get away with merely relinking gasflow, which will take less time than a full rebuild of all source files. As for pyscan, it is probably making use of a binary which is itself linked to the old libnetcdf.so -- you will have to track that down. -- Eli Schwartz
participants (5)
-
Bruno Pagani
-
Doug Newgard
-
Eli Schwartz
-
Fulcrum
-
Ilya Boka