Grib_api.h could not be found while installing grib api

145 views
Skip to first unread message

Yash Narwal

unread,
Nov 29, 2015, 4:18:00 AM11/29/15
to Ruby on Rails: Talk
HI there , I am trying to install a ruby gem called rb-grib but I am constantly having issues while doing so.
I am using Ubuntu 15.04

I tried to install requirements for this gem which are 
In order to install grib_api I followed every instructions I can find on web but when it comes to final step in installation (sudo make install) , it gives me an error
"checking for grib_api.h ... no"
"Could not create makefile due to some reason"

I have followed this guide to install grib api Guide
Snapshot of the error I am having in the final command for the api(from the guide link) (make install)
I am really look forward to have some help in installing the rb-grib gem.
Many thanks
Yash


Colin Law

unread,
Nov 29, 2015, 4:28:05 AM11/29/15
to Ruby on Rails: Talk
sudo apt-get install ruby-grib
might be what you want.  The description is "Ruby interface to the ECMWF GRIB API
It is always worth using synaptic to search the repositories before trying to install by hand.

Colin
 

Yash Narwal

unread,
Nov 30, 2015, 2:26:01 PM11/30/15
to Ruby on Rails: Talk
Hey mate thanks for heads up, your suggestion worked in installing the gem. But how can I use this gem now, like if I follow this example , it gives me no such file can not be loaded 'numru/grib'. So is there any other docs which should I follow to use this gem ?

I really appreciate your help.

Thanks
Yash

Colin Law

unread,
Nov 30, 2015, 4:23:52 PM11/30/15
to Ruby on Rails: Talk
On 30 November 2015 at 19:26, Yash Narwal <ynar...@gmail.com> wrote:
> Hey mate thanks for heads up, your suggestion worked in installing the gem.
> But how can I use this gem now, like if I follow this example , it gives me
> no such file can not be loaded 'numru/grib'. So is there any other docs
> which should I follow to use this gem ?

I have no idea, I have not heard of it before you asked, I just
googled a bit to come up with my previous suggestion. However if you
tell us more someone may be able to help. Post the source file around
the area giving the error and post the full error message and tell us
which line it is failing on.

Colin
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/f5c737b3-563e-4d20-93b9-b5f3fbdd997c%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

Colin Law

unread,
Nov 30, 2015, 4:36:49 PM11/30/15
to Ruby on Rails: Talk
On 30 November 2015 at 21:22, Colin Law <cla...@gmail.com> wrote:
> On 30 November 2015 at 19:26, Yash Narwal <ynar...@gmail.com> wrote:
>> Hey mate thanks for heads up, your suggestion worked in installing the gem.
>> But how can I use this gem now, like if I follow this example , it gives me
>> no such file can not be loaded 'numru/grib'. So is there any other docs
>> which should I follow to use this gem ?
>
> I have no idea, I have not heard of it before you asked, I just
> googled a bit to come up with my previous suggestion. However if you
> tell us more someone may be able to help. Post the source file around
> the area giving the error and post the full error message and tell us
> which line it is failing on.

On second thoughts I assume you are getting the error on the line
require 'numru/grib'. Is this in a Ruby on Rails app or in a straight
ruby script?

Colin

Yash Narwal

unread,
Dec 5, 2015, 9:14:33 PM12/5/15
to Ruby on Rails: Talk
Either way , I can not use this gem in the ruby script or rails app. I have been trying to fix but could not find any single guide to do so. The documentation on the gem page is very helpless.

Thanks
Yash

Colin Law

unread,
Dec 6, 2015, 2:59:54 AM12/6/15
to Ruby on Rails: Talk


On 6 Dec 2015 02:14, "Yash Narwal" <ynar...@gmail.com> wrote:
>
> Either way , I can not use this gem in the ruby script or rails app. I have been trying to fix but could not find any single guide to do so. The documentation on the gem page is very helpless.
>

In a rails app you do not need the require statement. Take that out and if you get an error when you try to use it post the error and a section of code and also Gemfile.lock

Colin

> Thanks
> Yash
>
> On Tuesday, December 1, 2015 at 8:36:49 AM UTC+11, Colin Law wrote:
>>
>> On 30 November 2015 at 21:22, Colin Law <cla...@gmail.com> wrote:
>> > On 30 November 2015 at 19:26, Yash Narwal <ynar...@gmail.com> wrote:
>> >> Hey mate thanks for heads up, your suggestion worked in installing the gem.
>> >> But how can I use this gem now, like if I follow this example , it gives me
>> >> no such file can not be loaded 'numru/grib'. So is there any other docs
>> >> which should I follow to use this gem ?
>> >
>> > I have no idea, I have not heard of it before you asked, I just
>> > googled a bit to come up with my previous suggestion.  However if you
>> > tell us more someone may be able to help.  Post the source file around
>> > the area giving the error and post the full error message and tell us
>> > which line it is failing on.
>>
>> On second thoughts I assume you are getting the error on the line
>> require 'numru/grib'.  Is this in a Ruby on Rails app or in a straight
>> ruby script?
>>
>> Colin
>

> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.

> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cd86f665-7614-44ca-b3f4-89b3dbde410a%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages