Comments (12)
Can you gist the mkmf.log file?
from charlock_holmes.
Here it is: https://gist.github.com/1201710
from charlock_holmes.
Looks like file/libmagic is using sed with @
as a separator, and it gets confused because of rvm's use of @
in the directory name.
Not sure how to fix it, we might have to patch file.
from charlock_holmes.
Actually its happening during manpage generation, so maybe we can skip that since all we need is the library.
from charlock_holmes.
Thanks, i'll try to figure out the temp patch while you guys work on this issue.
from charlock_holmes.
This should fix it:
diff --git a/ext/charlock_holmes/extconf.rb b/ext/charlock_holmes/extconf.rb
index 8ac3631..dc5784c 100644
--- a/ext/charlock_holmes/extconf.rb
+++ b/ext/charlock_holmes/extconf.rb
@@ -58,8 +58,7 @@ Dir.chdir("#{CWD}/src") do
sys("tar zxvf #{src}")
Dir.chdir(dir) do
sys("./configure --prefix=#{CWD}/dst/ --disable-shared --enable-static --with-pic")
- sys("make")
- sys("make install")
+ sys("make install-exec")
end
end
from charlock_holmes.
Can you confirm this change works?
from charlock_holmes.
The patch didnt solve the problem. After applying the patch i got a different error:
Building native extensions. This could take a while...
ERROR: Error installing charlock_holmes-0.6.7.gem:
ERROR: Failed to build gem native extension.
/Users/sosedoff/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb --with-icu-dir=/usr/local/Cellar/icu4c/4.4.1
checking for main() in -licui18n... yes
checking for main() in -licui18n... yes
checking for unicode/ucnv.h... yes
-- tar zxvf file-5.08.tar.gz
-- ./configure --prefix=/Users/sosedoff/.rvm/gems/ruby-1.9.2-p290/gems/charlock_holmes-0.6.7/ext/charlock_holmes/dst/ --disable-shared --enable-static --with-pic
-- make install-exec
checking for main() in -lmagic_ext... yes
checking for magic.h... no
***************************************************************************************
********* error compiling and linking libmagic. please report issue on github *********
***************************************************************************************
*** 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=/Users/sosedoff/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
--with-icu-dir
--with-icu-include
--without-icu-include=${icu-dir}/include
--with-icu-lib
--without-icu-lib=${icu-dir}/lib
--with-icui18nlib
--without-icui18nlib
--with-icui18nlib
--without-icui18nlib
--with-magic-dir
--without-magic-dir
--with-magic-include
--without-magic-include=${magic-dir}/include
--with-magic-lib
--without-magic-lib=${magic-dir}/lib
--with-magic_extlib
--without-magic_extlib
Gem files will remain installed in /Users/sosedoff/.rvm/gems/ruby-1.9.2-p290/gems/charlock_holmes-0.6.7 for inspection.
Results logged to /Users/sosedoff/.rvm/gems/ruby-1.9.2-p290/gems/charlock_holmes-0.6.7/ext/charlock_holmes/gem_make.out
from charlock_holmes.
Try this one:
diff --git a/ext/charlock_holmes/extconf.rb b/ext/charlock_holmes/extconf.rb
index 8ac3631..da83154 100644
--- a/ext/charlock_holmes/extconf.rb
+++ b/ext/charlock_holmes/extconf.rb
@@ -58,8 +58,7 @@ Dir.chdir("#{CWD}/src") do
sys("tar zxvf #{src}")
Dir.chdir(dir) do
sys("./configure --prefix=#{CWD}/dst/ --disable-shared --enable-static --with-pic")
- sys("make")
- sys("make install")
+ sys("make -C src install")
end
end
from charlock_holmes.
This one worked out. Thanks!
I tried REE, 187, 192, all via custom gemset.
See #2, still fails.
from charlock_holmes.
What still fails?
I committed the patch to master.
from charlock_holmes.
Oh, my bad. I was referring to #3.
from charlock_holmes.
Related Issues (20)
- Doesn't detect UTF-16 files without BOM.
- Install error on Windows 10 64x [ruby 2.3.1p112] [x64-mingw32]
- An error occurred while installing charlock_holmes (0.7.6), and Bundler cannot continue. Make sure that `gem install charlock_holmes -v '0.7.6' --source 'http://rubygems.org/'` succeeds before bundling. HOT 1
- Makefile:235: recipe for target 'transliterator.o' failed (Debian 8 (jessie))
- Makefile:235: recipe for target 'transliterator.o' failed (Debian 8 (jessie)) HOT 2
- macOS 10.14 make: *** [transliterator.o] Error HOT 7
- Can't install gem HOT 1
- Update to latest icu4c? HOT 1
- Installing charlock_holmes 0.7.6 on Oracle Linux fails HOT 1
- charlock_holmes no longer builds on CentOS v6 (g++ 4.4.7)
- Upgrade Docker Ruby image from stretch to buster fails with libicudata HOT 2
- macOS icu4c is too new HOT 2
- LoadError libicudata.64.dylib with 0.7.7 HOT 3
- Best practice for large files?
- Small Strings
- Uncaught exception: libicudata.so.72: cannot open shared object file: No such file or directory HOT 15
- undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30` HOT 2
- Alpine: `conflicting declaration of 'void* ruby_nonempty_memcpy` despite having `icu-dev` installed HOT 2
- Ruby v2.7.7 conflicts with Charlock_holmes converting file from euc_kr (or CP949) to uft-8 HOT 1
- Installing error on windows HOT 1
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 charlock_holmes.