You are not logged in.

#1 2013-05-19 11:34:46

freieschaf
Member
Registered: 2010-11-30
Posts: 18

[Solved] Problem installing ruby-netcdf

I'm having a problem installing the package ruby-netcdf. It builds OK except for a couple of warnings, but as soon as it begins installing, it prompts an error due to a missing make rule. This is the output of the failed installation through yaourt:

==> Starting build()...
/usr/local/lib/ruby/gems/1.9.1/gems/narray-0.6.0.8
0.6.0.8
checking for narray.h... yes
checking for narray_config.h... yes
checking for netcdf.h... yes
checking for main() in -lnetcdf... yes
creating Makefile
compiling netcdfraw.c
netcdfraw.c: In function 'NetCDF_free':
netcdfraw.c:346:7: warning: variable 'status' set but not used [-Wunused-but-set-variable]
   int status;
       ^
netcdfraw.c: In function 'err_status2class':
netcdfraw.c:429:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
linking shared-object numru/netcdfraw.so
/usr/bin/install -c -m 0755 netcdfraw.so /tmp/yaourt-tmp-menelmacar/aur-ruby-netcdf/pkg/usr/local/lib/ruby/site_ruby/1.9.1/x86_64-linux/numru
installing default netcdfraw libraries
make: *** No rule to make target `lib/netcdf.rb/', needed by `/tmp/yaourt-tmp-menelmacar/aur-ruby-netcdf/pkg/usr/local/lib/ruby/site_ruby/1.9.1/numru/netcdf.rb'.  Stop.
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build ruby-netcdf.
==> Restart building ruby-netcdf ? [y/N]

Any ideas on what's happening? I warned about this on the package site so the maintainer is aware, but got no response so far.

Last edited by freieschaf (2013-05-20 18:33:06)

Offline

#2 2013-05-20 10:46:55

freieschaf
Member
Registered: 2010-11-30
Posts: 18

Re: [Solved] Problem installing ruby-netcdf

Update: this is also happening when I try to install ruby-netcdf as a gem or building it from source, so I guess nothing is particularly wrong with the AUR package. Anyway, I would appreciate any help, as I can't figure out what should be causing this or how could I straighten it. If any additional information is needed, please ask. Thanks!

Offline

#3 2013-05-20 18:32:48

freieschaf
Member
Registered: 2010-11-30
Posts: 18

Re: [Solved] Problem installing ruby-netcdf

This is now solved with the help of the package's maintainer, ram. I will leave hiis solution here in case anyone else should encounter this problem. In this line

make: *** No rule to make target `lib/netcdf.rb/', needed by `/tmp/yaourt-tmp-menelmacar/aur-ruby-netcdf/pkg/usr/local/lib/ruby/site_ruby/1.9.1/numru/netcdf.rb'.  Stop.

we can see that the target has a slash at the end (`lib/netcdf.rb/'); it was just a matter of removing that slash from the makefile, along with another from `lib/netcdf_miss.rb/' which will raise the same error, and retrying make install. That fixes it!

Offline

Board footer

Powered by FluxBB