GithubHelp home page GithubHelp logo

Comments (8)

caseyhelbling avatar caseyhelbling commented on August 10, 2024 8

I take that back... once I added g++ in my vbox I was good to go.

sudo apt-get install build-essential g++

from ruby-unf_ext.

postmodern avatar postmodern commented on August 10, 2024

This might be a compiler/extconf issue. I can successfully compile it on ruby 2.0.0-p0, with gcc 4.7.2 on Fedora 17 x86-64.

from ruby-unf_ext.

contentfree avatar contentfree commented on August 10, 2024

@knu: You have a prebuilt extension for x86 for 1.8 and 1.9. Can you cross-compile and publish a new version of the gem for Ruby 2.0/2.1?

from ruby-unf_ext.

caseyhelbling avatar caseyhelbling commented on August 10, 2024

Yes same error on 2.1.2 --

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /home/vagrant/.rbenv/versions/2.1.2/bin/ruby extconf.rb 
checking for main() in -lstdc++... no
checking for ruby/encoding.h... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling unf.cc
make: g++: Command not found
make: *** [unf.o] Error 127

make failed, exit code 2

Gem files will remain installed in /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0   /gems/unf_ext-0.0.6 for inspection.
Results logged to /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/unf_ext-0.0.6/gem_make.out
An error occurred while installing unf_ext (0.0.6), and Bundler cannot continue.
Make sure that `gem install unf_ext -v '0.0.6'` succeeds before bundling.

from ruby-unf_ext.

knu avatar knu commented on August 10, 2024

@contentfree The latest version of the gem has binary gems for Windows 64bit/32bit, up to Ruby 2.2.

from ruby-unf_ext.

knu avatar knu commented on August 10, 2024

Does this still reproduce? I'm closing this since I haven't been able to reproduce this. Please refile an issue if you still have the problem, thanks!

from ruby-unf_ext.

soundasleep avatar soundasleep commented on August 10, 2024

For 0.0.7.4, sudo apt-get install build-essential g++ solved the issue on Ubuntu 16.04.

from ruby-unf_ext.

eugeniomiro avatar eugeniomiro commented on August 10, 2024

on openSUSE (tested on Leap 15.1)

$ sudo zypper install -t pattern devel_C_C++

from ruby-unf_ext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.