Discussion:
Header files in Ruby repo?
Tony Su
2018-07-11 19:02:16 UTC
Permalink
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-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Hassan Schroeder
2018-07-11 19:37:16 UTC
Permalink
Post by Tony Su
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
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?
--
Hassan Schroeder ------------------------ ***@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Unsubscribe: <mailto:ruby-talk-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Tony Su
2018-07-12 00:26:25 UTC
Permalink
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
Post by Hassan Schroeder
Post by Tony Su
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
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?
--
Consulting Availability : Silicon Valley or remote
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Unsubscribe: <mailto:ruby-talk-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Tony Su
2018-07-12 00:48:10 UTC
Permalink
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
Post by Tony Su
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
Post by Hassan Schroeder
Post by Tony Su
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
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?
--
Consulting Availability : Silicon Valley or remote
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Unsubscribe: <mailto:ruby-talk-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Loading...