Comments (5)
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.
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.
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.
Is this project dead?
from ruby-stemmer.
@behrangsa nope
from ruby-stemmer.
Related Issues (20)
- warning: implicit conversion shortens 64-bit value into a 32-bit value
- Bundler uses :require, not :lib HOT 1
- czech stemmer
- Bulgarian stemmer HOT 5
- This stemmer doesn't support spanish language HOT 1
- version.rb missing from 0.9.4 release HOT 2
- Stemming single-item array should yield an array HOT 1
- "simply" and "simple" give different stems HOT 1
- How to detect supported languages? HOT 2
- RubyNLP HOT 1
- libstemmer_c build is broken on Ubuntu HOT 2
- jruby support HOT 2
- German umlauts are being converted HOT 1
- [Windows] Can't install stemmer by any means. HOT 10
- Gem installation failing on Windows 10
- Compile problems on OSX HOT 2
- Latin support HOT 1
- Ruby 1.9 and encoding HOT 1
- Mac OS X installation for 1.9.2 (rvm) HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-stemmer.