-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem Installing on Raspberry Pi #78
Comments
I think in RHEL it would be ruby-devel. In Debian it looks like the package would be ruby-dev? https://packages.debian.org/jessie/ruby-dev Give it a try, |
@kinow It looks like I'm still running into the same thing. It tells me I have the latest Ruby.
|
Try running this to install 2.4.1:
https://gist.github.com/blacktm/8302741
It will also install the required line to build native gems - the two apt-get install lines. This is all that is truly required, but might as well use 2.4.1 if you can!
… On Aug 7, 2017, at 4:12 PM, Lynchmenow ***@***.***> wrote:
@kinow It looks like I'm still running into the same thing. It tells me I have the latest Ruby.
***@***.***:~ $ sudo apt-get install ruby-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
ruby-dev is already the newest version (1:2.3.3).
0 upgraded, 0 newly installed, 0 to remove and 157 not upgraded.
***@***.***:~ $ sudo gem install smashing
Building native extensions. This could take a while...
ERROR: Error installing smashing:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/eventmachine-1.2.5/ext
/usr/bin/ruby2.3 -r ./siteconf20170807-19866-1b487v2.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
--with-ssl-dir
--without-ssl-dir
--with-ssl-include
--without-ssl-include=${ssl-dir}/include
--with-ssl-lib
--without-ssl-lib=${ssl-dir}/lib
--with-openssl-config
--without-openssl-config
--with-pkg-config
--without-pkg-config
/usr/lib/ruby/2.3.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file.
(RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/2.3.0/mkmf.rb:541:in `try_link0'
from /usr/lib/ruby/2.3.0/mkmf.rb:556:in `try_link'
from /usr/lib/ruby/2.3.0/mkmf.rb:657:in `try_ldflags'
from /usr/lib/ruby/2.3.0/mkmf.rb:1813:in `pkg_config'
from extconf.rb:65:in `pkg_config_wrapper'
from extconf.rb:92:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/lib/gems/2.3.0/extensions/arm-linux/2.3.0/eventmachine-1.2.5/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.3.0/gems/eventmachine-1.2.5 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/arm-linux/2.3.0/eventmachine-1.2.5/gem_make.out
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@tylermauthe The Bash script finished without issue. I reloaded the shell and tried again, but still get the same thing.
|
I'm not sure if this has anything to do with it, but I get this upon opening the shell |
Also, contents of the mkmf.log
|
Anything on |
Well I started from the beginning with fresh install of Raspbian and did the below instructions. Now, it is up and working fine. I am wondering where I went wrong.
|
Interesting. Maybe one of the libraries had some temporary files/folders from when it failed? I remember having that with a Python module some time ago, simply because somewhere a Let's close it as it seems to be working. Should you have anything that you believe could be documented for other Raspbian users, feel free to submit a pull request, or comment here :-) |
I am trying to install on the latest Raspbian Jessie and I keep running into this problem below. Can someone please halp?
The text was updated successfully, but these errors were encountered: