DevHeads.net

Header files in Ruby repo?

Hi,
Hoping this question has a simple answer, I'm familiar with where the
Header files can be found in a Distro's own packagment system,
typically the package names will have a "-dev" or "--devel" appended
to the end of the package name. If something similar exists for gem
files from the official Ruby repos and can't seem to find in
Documentation(My search skills seem to have failed me), I can't find
it. If another system, would appreciate guidance, or a reference.

TIA,
Tony

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Comments

Re: Header files in Ruby repo?

By Hassan Schroeder at 07/11/2018 - 15:37

I'm not sure what exactly you're looking for; most Ruby gems don't
require compiling, and I assume the ones that do include whatever
they need.

Is there a specific gem you're concerned about?

Re: Header files in Ruby repo?

By Tony Su at 07/11/2018 - 20:26

Thx,
Took a closer look at the thrown error,
For some reason the error is thrown because the install is looking in
a location where Ruby would normally be installed by the system.

I have used rbenv to download Ruby 2.4.2,
After running rbenv rehash
Then ran the following to set that as the Ruby to be used globally on the system
rbenv global 2.4.2
Ran the following to verify Ruby 2.4.2 is set
ruby -v

Then tried to install Jekyll with
gem install Jekyll

Which runs for a bit, then throws the errors looking for headers in
the following location which is where a ruby installed by the distro
is supposed to be, but has been removed
/usr/lib64/ruby/gems/2.5.0/

In fact, now that I'm looking at this, when I execute the gem command,
it continues to operate on the system location and not look for
anything in the .rbenv location...

Looks like that's my real problem...
Although I installed rbenv and the system is reporting using the ruby
managed by rbenv, when I execute the gem command, it's not executing
against the ruby managed by rbenv, it's looking for files where a ruby
installed by the distro would be.

Tony

On Wed, Jul 11, 2018 at 12:37 PM, Hassan Schroeder
<hassan. ... at gmail dot com> wrote:
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Re: Header files in Ruby repo?

By Tony Su at 07/11/2018 - 20:48

Thx for ;your response, it was enough for me to look at the problem differently,
Found that rbenv on this system is slightly unstable, but once
identified I was able to continuously test for if ruby was working
properly or not.

In the end, was successful,
Required installing g++ (On this RPM system, apparently is in package
gcc-c++) and then when I ran "gem install jekyll" the install
completed successfully.

A happy camper,
Thx.
Tony

On Wed, Jul 11, 2018 at 5:26 PM, Tony Su <tonysu@su-networking.com> wrote:
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>