Code Monkey home page Code Monkey logo

Comments (5)

aurelian avatar aurelian commented on June 13, 2024

Hi michael,

On my system with rvm 1.2.7 and Mac OS X 10.6.7:

/Users/aurelian/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby: Mach-O 64-bit executable x86_64
/Users/aurelian/.rvm/rubies/ruby-1.9.2-p136/bin/ruby: Mach-O 64-bit executable x86_64
/Users/aurelian/.rvm/rubies/ruby-1.9.2-p180/bin/ruby: Mach-O 64-bit executable x86_64

The idea of unless ENV['ARCHFLAGS'].nil?: don't set ARCHFLAGS if aren't set and if set, make sure they get the same value as the ruby binary.
So, this is not to allow one to set this env. var. but just to make sure it gets the same value as the ruby executable. Somehow on your system the regexp fails :|

file command is indeed not reliable and this will fail very nicely also with universal binaries.

What error message did you get? Maybe setting ARCHFLAGS to nothing will solve this for you e.g.

ARCHFLAGS="" gem install ruby-stemmer

from ruby-stemmer.

mmullis avatar mmullis commented on June 13, 2024

Here's mine ( also on OSX 10.6.7)
$: rvm -v
rvm 1.6.5 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/]

Maybe there's some compiler option that turned off the addition of the arch identification on the binaries.
That's not really the issue.

ARCHFLAGS="" gem ... doesn't work because it has to be nil
Only unsetting ARCHFLAGS will work which is not a reasonable option for folks using bundler or geminstaller (deprecated) which have other native components that need the ARCHFLAGS defined to compile properly (e.g. mysql, postgres,

Using ARCHFLAGS that way is probably not such a good idea. The point of ARCHFLAGS is to set the arch explicitly to deal with cases where the arch is not necessarily identifiable or the mechanism to identify it is inconsistent.

IMHO, if someone sets ARCHFLAGS to something not matching their ruby version, that's too bad - they should know better once they choose to use it. The default when ARCHFLAGS is not set should be to try to identify it.
A warning could be issued to indicate that there's a discrepancy, but it shouldn't stop the process.

thanks,
michael.

from ruby-stemmer.

aurelian avatar aurelian commented on June 13, 2024

Hi Michael,

Thanks for your input on this.
For a future release, I'm thinking to take the pg approach: the install script won't touch in any way the ARCHFLAGS.

from ruby-stemmer.

behrangsa avatar behrangsa commented on June 13, 2024

Is this project dead?

from ruby-stemmer.

aurelian avatar aurelian commented on June 13, 2024

@behrangsa nope

from ruby-stemmer.

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.