مشاكل في تثبيت RMagick-جوهرة في القضبان
-
27-09-2019 - |
سؤال
لقد تم الحرث من خلال الدروس كل يوم في محاولة لتثبيت RMagick و قد حصلت بعيدا جدا الآن أعتقد, ولكن قد تعثرت apon خطأ أنا حقا لا أعرف كيفية حلها ، أو الحصول على أي معلومات مفيدة عن.
عند محاولة تثبيت جوهرة أحصل على هذه الرسالة:
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
C:/Ruby192/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5... yes
**checking for stdint.h... *** 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=C:/Ruby192/bin/ruby
C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:452:in `try_cpp'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:834:in `block in have_header'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:833:in `have_header'
from extconf.rb:193:in `<main>'
Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
أعتقد أن جزءا بالخط العريض هو الجزء المهم و لقد قمت ببعض البحوث و قد فهمت أن stdint.ساعة نوع من رأس ، ولكن لا اعرف كيفية تثبيته.
راجعت أيضا في mkmf.ملف السجل الذي أعطاني هذا من السهل قراءة بعض المعلومات :
التحقق من روبي الإصدار >= 1.8.5...-------------------- نعم
"gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby192/include/ruby-1.9.1/ruby/backward -IC:/Ruby192/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -LC:/Ruby192/lib -L. -lCORE_RL_magick_ -lX11 -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
cc1.exe: error: unrecognized command line option "-Wno-missing-field-initializers"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main() {return 0;}
/* end */
أي شخص لديك أي أفكار ؟
كبير شكرا مقدما على أي مساعدة!
التحيات, اميل
المحلول
لقد حل هذا عن طريق تشغيل apt-get install libmagick9-ديف' الذي يثبت ImageMagicks devkit.
نصائح أخرى
جرب هذا :
sudo apt-get install libmagickwand-dev
يعمل على أوبونتو.
هل أنت على ويندوز ؟ إذا كنت, وهناك احتمالات, كما اور وقال السجل, تحتاج إلى تثبيت http://rubyforge.org/frs/?group_id=167 <-- تطوير عدة منذ بعض الأوامر لتجميع لا وجود لها...