Giter Site home page Giter Site logo

Build fail on Linux about ruby-unf_ext HOT 16 OPEN

knu avatar knu commented on August 10, 2024 5
Build fail on Linux

from ruby-unf_ext.

Comments (16)

grasp avatar grasp commented on August 10, 2024 5

my solution is : apt-get install g++

from ruby-unf_ext.

kanstantsin-klachkou avatar kanstantsin-klachkou commented on August 10, 2024 4

gem install unf_ext -v '0.0.7.5'

and then try again bundle install

from ruby-unf_ext.

inertia186 avatar inertia186 commented on August 10, 2024 2

Well, it says to do that right in the error. Why didn't I think of that?

from ruby-unf_ext.

AndiBrunner avatar AndiBrunner commented on August 10, 2024 2

I had the same issue, installing ruby-dev helped.

$ sudo apt-get install ruby-dev

from ruby-unf_ext.

grasp avatar grasp commented on August 10, 2024

any solution on this?

from ruby-unf_ext.

silverhammermba avatar silverhammermba commented on August 10, 2024

Nothing to do with this extension:

checking for main() in -lstdc++... *** extconf.rb failed *** 

This is telling you that you don't have a C++ compiler installed. You won't be able to install any native extensions that use C++.

from ruby-unf_ext.

Ryuno-Ki avatar Ryuno-Ki commented on August 10, 2024

G++ is installed

LC_ALL=C g++ --version
g++ (Gentoo Hardened 6.4.0-r1 p1.3) 6.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Still the same error.

from ruby-unf_ext.

kjian avatar kjian commented on August 10, 2024

same here:

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

/Users/kjian/.rvm/rubies/ruby-2.2.4/bin/ruby -r ./siteconf20180522-62521-1v2gv2c.rb extconf.rb

checking for main() in -lstdc++... yes
creating Makefile
...
unf was resolved to 0.1.4, which depends on
unf_ext

from ruby-unf_ext.

kjian avatar kjian commented on August 10, 2024

I have installed multiple Xcode in /Applications, when compiling unf_ext, it selected the wrong Xcode.

So, when i reset the compiling toolchain to default, it worked.

sudo xcode-select -r

from ruby-unf_ext.

Ryuno-Ki avatar Ryuno-Ki commented on August 10, 2024

Now we just need to find a pendant on Linux :-)

from ruby-unf_ext.

JoshuaEdwards1991 avatar JoshuaEdwards1991 commented on August 10, 2024

Any fix for this?

from ruby-unf_ext.

talezion avatar talezion commented on August 10, 2024

Any solutions?

I get the same error.

sudo gem install unf_ext -v '0.0.7.6' --source 'https://rubygems.org/'

I was setting fastlane with Firebase Distribution and had to run bundle update

fastlane add_plugin firebase_app_distribution

Fetching unf_ext 0.0.7.6
Installing unf_ext 0.0.7.6 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

An error occurred while installing unf_ext (0.0.7.6), and Bundler
cannot continue.
Make sure that `gem install unf_ext -v '0.0.7.6' --source
'https://rubygems.org/'` succeeds before bundling.

from ruby-unf_ext.

talezion avatar talezion commented on August 10, 2024

I updated ruby to 2.6.3 and is works now!

from ruby-unf_ext.

marlti7 avatar marlti7 commented on August 10, 2024

Any fix for this?

from ruby-unf_ext.

hokita avatar hokita commented on August 10, 2024

Any fix for this? ruby 2.6.5 doesn't work

from ruby-unf_ext.

KlausLiu avatar KlausLiu commented on August 10, 2024

Any fix for this? ruby 2.6.0 doesn't work

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.