установка ruby - slanger на debian 7.2

danik

Гуру форума
Регистрация
26 Июн 2007
Сообщения
207
Реакции
53
помогите установить slanger воткнулся и не знаю как решить - в рубях не силен, дистр debian stable 7.2
сам проект тут - github.com/stevegraham/slanger

дополнительно поставил

Код:
apt-get update
apt-get upgrade
apt-get install libssl-dev libgcrypt11 libgcrypt11-dev ruby-eventmachine ruby-packet build-essential ruby-dev ruby

но все равно при попытке поставить его через

Код:
gem install slanger

получаю такую ошибку

Код:
Building native extensions.  This could take a while...
ERROR:  Error installing slanger:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for rb_thread_check_ints()... yes
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
checking for main() in -lcrypto... yes
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
creating Makefile

make
compiling rubymain.cpp
rubymain.cpp: In function ‘VALUE t_connect_server(VALUE, VALUE, VALUE)’:
rubymain.cpp:468:42: error: format not a string literal and no format arguments [-Werror=format-security]
rubymain.cpp: In function ‘VALUE t_bind_connect_server(VALUE, VALUE, VALUE, VALUE, VALUE)’:
rubymain.cpp:488:42: error: format not a string literal and no format arguments [-Werror=format-security]
cc1plus: some warnings being treated as errors
make: *** [rubymain.o] Ошибка 1


Gem files will remain installed in /var/lib/gems/1.9.1/gems/eventmachine-0.12.10 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out
 
Последнее редактирование модератором:
пробуйте что то, типа
хотя подобные моменты неудачных сборок лучше всего задавать в руби-сообществах, здесь этим мало кто интересуется.
 
проблема в том то дебиан как всега пошел своим путем

Код:
gem update --system
ERROR:  While executing gem ... (RuntimeError)
    gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories.
If you really know what you are doing, you can still update rubygems by setting the REALLY_GEM_UPDATE_SYSTEM environment variable, but please remember that this is completely unsupported by Debian.

да я везде спросил где мог,
даже на irc слангера но народ на простые вопросы отвечает, а на сложные делает вид что не заметил ((

проблема как таковая не со слангером а с тем что в gem list не светица последняя eventmachine и собрать ее руками непонятно как, а из пакета не катит :(
 
помогите установить slanger воткнулся и не знаю как решить - в рубях не силен, дистр debian stable 7.2
сам проект тут - github.com/stevegraham/slanger

дополнительно поставил

Код:
apt-get update
apt-get upgrade
apt-get install libssl-dev libgcrypt11 libgcrypt11-dev ruby-eventmachine ruby-packet build-essential ruby-dev ruby

но все равно при попытке поставить его через

Код:
gem install slanger

получаю такую ошибку

Код:
Building native extensions.  This could take a while...
ERROR:  Error installing slanger:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for rb_thread_check_ints()... yes
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
checking for main() in -lcrypto... yes
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
creating Makefile

make
compiling rubymain.cpp
rubymain.cpp: In function ‘VALUE t_connect_server(VALUE, VALUE, VALUE)’:
rubymain.cpp:468:42: error: format not a string literal and no format arguments [-Werror=format-security]
rubymain.cpp: In function ‘VALUE t_bind_connect_server(VALUE, VALUE, VALUE, VALUE, VALUE)’:
rubymain.cpp:488:42: error: format not a string literal and no format arguments [-Werror=format-security]
cc1plus: some warnings being treated as errors
make: *** [rubymain.o] Ошибка 1


Gem files will remain installed in /var/lib/gems/1.9.1/gems/eventmachine-0.12.10 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out
[/spoil]
Возможно я ошибаюсь, но по-моему у вас не та версия Ruby. У слангера
Requirements
  • Ruby 1.9.2-p290 or greater
  • Redis
У вас же судя по логу 1.9.1. У меня тоже Debian 7.2 и руби
Код:
root@srv ~ # ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
Лог установки slanger
[spoil]
Код:
root@srv ~ # gem install slanger
Fetching: eventmachine-0.12.10.gem (100%)
Building native extensions.  This could take a while...
Fetching: hiredis-0.4.5.gem (100%)
Building native extensions.  This could take a while...
Fetching: em-hiredis-0.1.1.gem (100%)
Fetching: addressable-2.3.5.gem (100%)
Fetching: em-websocket-0.3.8.gem (100%)
Fetching: rack-1.4.5.gem (100%)
Fetching: rack-fiber_pool-0.9.1.gem (100%)
Fetching: signature-0.1.7.gem (100%)
Fetching: i18n-0.6.9.gem (100%)
Fetching: multi_json-1.8.2.gem (100%)
Fetching: activesupport-3.2.16.gem (100%)
Fetching: yajl-ruby-1.1.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: glamazon-0.3.1.gem (100%)
Fetching: tilt-1.4.1.gem (100%)
Fetching: backports-3.3.5.gem (100%)
Fetching: sinatra-1.2.9.gem (100%)
Fetching: daemons-1.1.9.gem (100%)
Fetching: thin-1.2.11.gem (100%)
Building native extensions.  This could take a while...
Fetching: escape_utils-1.0.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: em-http-request-0.3.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: slanger-0.3.6.gem (100%)
Successfully installed eventmachine-0.12.10
Successfully installed hiredis-0.4.5
Successfully installed em-hiredis-0.1.1
Successfully installed addressable-2.3.5
Successfully installed em-websocket-0.3.8
Successfully installed rack-1.4.5
Successfully installed rack-fiber_pool-0.9.1
Successfully installed signature-0.1.7
Successfully installed i18n-0.6.9
Successfully installed multi_json-1.8.2
Successfully installed activesupport-3.2.16
Successfully installed yajl-ruby-1.1.0
Successfully installed glamazon-0.3.1
Successfully installed tilt-1.4.1
Successfully installed backports-3.3.5
Successfully installed sinatra-1.2.9
Successfully installed daemons-1.1.9
Successfully installed thin-1.2.11
Successfully installed escape_utils-1.0.0
Successfully installed em-http-request-0.3.0
Successfully installed slanger-0.3.6
21 gems installed
Installing ri documentation for eventmachine-0.12.10...
Installing ri documentation for hiredis-0.4.5...
Installing ri documentation for em-hiredis-0.1.1...
Installing ri documentation for addressable-2.3.5...
Installing ri documentation for em-websocket-0.3.8...
Installing ri documentation for rack-1.4.5...
Installing ri documentation for rack-fiber_pool-0.9.1...
Installing ri documentation for signature-0.1.7...
Installing ri documentation for i18n-0.6.9...
Installing ri documentation for multi_json-1.8.2...
Installing ri documentation for activesupport-3.2.16...
Installing ri documentation for yajl-ruby-1.1.0...
Installing ri documentation for glamazon-0.3.1...
Installing ri documentation for tilt-1.4.1...
Installing ri documentation for backports-3.3.5...
Installing ri documentation for sinatra-1.2.9...
Installing ri documentation for daemons-1.1.9...
Installing ri documentation for thin-1.2.11...
Installing ri documentation for escape_utils-1.0.0...
Installing ri documentation for em-http-request-0.3.0...
Installing ri documentation for slanger-0.3.6...
Installing RDoc documentation for eventmachine-0.12.10...
Installing RDoc documentation for hiredis-0.4.5...
Installing RDoc documentation for em-hiredis-0.1.1...
Installing RDoc documentation for addressable-2.3.5...
Installing RDoc documentation for em-websocket-0.3.8...
Installing RDoc documentation for rack-1.4.5...
Installing RDoc documentation for rack-fiber_pool-0.9.1...
Installing RDoc documentation for signature-0.1.7...
Installing RDoc documentation for i18n-0.6.9...
Installing RDoc documentation for multi_json-1.8.2...
Installing RDoc documentation for activesupport-3.2.16...
Installing RDoc documentation for yajl-ruby-1.1.0...
Installing RDoc documentation for glamazon-0.3.1...
Installing RDoc documentation for tilt-1.4.1...
Installing RDoc documentation for backports-3.3.5...
Installing RDoc documentation for sinatra-1.2.9...
Installing RDoc documentation for daemons-1.1.9...
Installing RDoc documentation for thin-1.2.11...
Installing RDoc documentation for escape_utils-1.0.0...
Installing RDoc documentation for em-http-request-0.3.0...
Installing RDoc documentation for slanger-0.3.6...

Попробуйте установить
Код:
apt-get install ruby1.9.3
Или же используйте RVM
 
Назад
Сверху