curb gem is not installing in linux redhat - ruby-on-rails
i am using ruby-1.9.2-p290 and have installed curl, curl-devel, libcurl and libcurl-devel but curb gem is not installing, I get the following error:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/jophine/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for curl-config... yes
checking for curlinfo_redirect_time... no
checking for curlinfo_response_code... no
checking for curlinfo_filetime... no
checking for curlinfo_redirect_count... no
checking for curlinfo_os_errno... no
checking for curlinfo_num_connects... no
checking for curlinfo_ftp_entry_path... no
checking for curl_version_ssl... no
checking for curl_version_libz... no
checking for curl_version_ntlm... no
checking for curl_version_gssnegotiate... no
checking for curl_version_debug... no
checking for curl_version_asynchdns... no
checking for curl_version_spnego... no
checking for curl_version_largefile... no
checking for curl_version_idn... no
checking for curl_version_sspi... no
checking for curl_version_conv... no
checking for curlproxy_http... no
checking for curlproxy_socks4... no
checking for curlproxy_socks5... no
checking for curlauth_basic... no
checking for curlauth_digest... no
checking for curlauth_gssnegotiate... no
checking for curlauth_ntlm... no
checking for curlauth_anysafe... no
checking for curlauth_any... no
checking for curle_tftp_notfound... no
checking for curle_tftp_perm... no
checking for curle_tftp_diskfull... no
checking for curle_tftp_illegal... no
checking for curle_tftp_unknownid... no
checking for curle_tftp_exists... no
checking for curle_tftp_nosuchuser... no
checking for curle_send_fail_rewind... no
checking for curle_ssl_engine_initfailed... no
checking for curle_login_denied... no
checking for curlmopt_maxconnects... no
checking for curlopt_seekfunction... no
checking for curlopt_seekdata... no
checking for curlopt_sockoptfunction... no
checking for curlopt_sockoptdata... no
checking for curlopt_opensocketfunction... no
checking for curlopt_opensocketdata... no
checking for curle_conv_failed... no
checking for curle_conv_reqd... no
checking for curle_ssl_cacert_badfile... no
checking for curle_remote_file_not_found... no
checking for curle_ssh... no
checking for curle_ssl_shutdown_failed... no
checking for curle_again... no
checking for curle_ssl_crl_badfile... no
checking for curle_ssl_issuer_error... no
checking for curlopt_username... no
checking for curlopt_password... no
checking for curlinfo_primary_ip... no
checking for curlauth_digest_ie... no
checking for curlftpmethod_multicwd... no
checking for curlftpmethod_nocwd... no
checking for curlftpmethod_singlecwd... no
checking for curlm_bad_socket... no
checking for curlm_unknown_option... no
checking for curl_multi_timeout()... yes
checking for curl_multi_fdset()... yes
checking for curl_multi_perform()... yes
checking for curlopt_interleavefunction... no
checking for curlopt_interleavedata... no
checking for curlopt_chunk_bgn_function... no
checking for curlopt_chunk_end_function... no
checking for curlopt_chunk_data... no
checking for curlopt_fnmatch_function... no
checking for curlopt_fnmatch_data... no
checking for curlopt_errorbuffer... no
checking for curlopt_stderr... no
checking for curlopt_failonerror... no
checking for curlopt_url... no
checking for curlopt_protocols... no
checking for curlopt_redir_protocols... no
checking for curlopt_proxy... no
checking for curlopt_proxyport... no
checking for curlopt_proxytype... no
checking for curlopt_noproxy... no
checking for curlopt_httpproxytunnel... no
checking for curlopt_socks5_gssapi_service... no
checking for curlopt_socks5_gssapi_nec... no
checking for curlopt_interface... no
checking for curlopt_localport... no
checking for curlopt_dns_cache_timeout... no
checking for curlopt_dns_use_global_cache... no
checking for curlopt_buffersize... no
checking for curlopt_port... no
checking for curlopt_tcp_nodelay... no
checking for curlopt_address_scope... no
checking for curlopt_netrc... no
checking for curl_netrc_optional... no
checking for curl_netrc_ignored... no
checking for curl_netrc_required... no
checking for curlopt_netrc_file... no
checking for curlopt_userpwd... no
checking for curlopt_proxyuserpwd... no
checking for curlopt_username... no
checking for curlopt_password... no
checking for curlopt_password... no
checking for curlopt_password... no
checking for curlopt_httpauth... no
checking for curlauth_digest_ie... no
checking for curlauth_only... no
checking for curlopt_tlsauth_type... no
checking for curlopt_tlsauth_srp... no
checking for curlopt_tlsauth_username... no
checking for curlopt_tlsauth_password... no
checking for curlopt_proxyauth... no
checking for curlopt_autoreferer... no
checking for curlopt_encoding... no
checking for curlopt_followlocation... no
checking for curlopt_unrestricted_auth... no
checking for curlopt_maxredirs... no
checking for curlopt_postredir... no
checking for curlopt_put... no
checking for curlopt_post... no
checking for curlopt_postfields... no
checking for curlopt_postfieldsize... no
checking for curlopt_postfieldsize_large... no
checking for curlopt_copypostfields... no
checking for curlopt_httppost... no
checking for curlopt_referer... no
checking for curlopt_useragent... no
checking for curlopt_httpheader... no
checking for curlopt_http200aliases... no
checking for curlopt_cookie... no
checking for curlopt_cookiefile... no
checking for curlopt_cookiejar... no
checking for curlopt_cookiesession... no
checking for curlopt_cookielist... no
checking for curlopt_httpget... no
checking for curlopt_http_version... no
checking for curl_http_version_none... no
checking for curl_http_version_1_0... no
checking for curl_http_version_1_1... no
checking for curlopt_ignore_content_length... no
checking for curlopt_http_content_decoding... no
checking for curlopt_http_transfer_decoding... no
checking for curlopt_mail_from... no
checking for curlopt_mail_rcpt... no
checking for curlopt_tftp_blksize... no
checking for curlopt_ftpport... no
checking for curlopt_quote... no
checking for curlopt_postquote... no
checking for curlopt_prequote... no
checking for curlopt_dirlistonly... no
checking for curlopt_append... no
checking for curlopt_ftp_use_eprt... no
checking for curlopt_ftp_use_epsv... no
checking for curlopt_ftp_use_pret... no
checking for curlopt_ftp_create_missing_dirs... no
checking for curlopt_ftp_response_timeout... no
checking for curlopt_ftp_alternative_to_user... no
checking for curlopt_ftp_skip_pasv_ip... no
checking for curlopt_ftpsslauth... no
checking for curlftpauth_default... no
checking for curlftpauth_ssl... no
checking for curlftpauth_tls... no
checking for curlopt_ftp_ssl_ccc... no
checking for curlftpssl_ccc_none... no
checking for curlftpssl_ccc_passive... no
checking for curlftpssl_ccc_active... no
checking for curlopt_ftp_account... no
checking for curlopt_ftp_filemethod... no
checking for curlftpmethod_multicwd... no
checking for curlftpmethod_nocwd... no
checking for curlftpmethod_singlecwd... no
checking for curlopt_rtsp_request... no
checking for curl_rtspreq_options... no
checking for curl_rtspreq_describe... no
checking for curl_rtspreq_announce... no
checking for curl_rtspreq_setup... no
checking for curl_rtspreq_play... no
checking for curl_rtspreq_pause... no
checking for curl_rtspreq_teardown... no
checking for curl_rtspreq_get_parameter... no
checking for curl_rtspreq_set_parameter... no
checking for curl_rtspreq_record... no
checking for curl_rtspreq_receive... no
checking for curlopt_rtsp_session_id... no
checking for curlopt_rtsp_stream_uri... no
checking for curlopt_rtsp_transport... no
checking for curlopt_rtsp_header... no
checking for curlopt_rtsp_client_cseq... no
checking for curlopt_rtsp_server_cseq... no
checking for curlopt_transfertext... no
checking for curlopt_proxy_transfer_mode... no
checking for curlopt_crlf... no
checking for curlopt_range... no
checking for curlopt_resume_from... no
checking for curlopt_resume_from_large... no
checking for curlopt_customrequest... no
checking for curlopt_filetime... no
checking for curlopt_nobody... no
checking for curlopt_infilesize... no
checking for curlopt_infilesize_large... no
checking for curlopt_upload... no
checking for curlopt_maxfilesize... no
checking for curlopt_maxfilesize_large... no
checking for curlopt_timecondition... no
checking for curlopt_timevalue... no
checking for curlopt_timeout... no
checking for curlopt_timeout_ms... no
checking for curlopt_low_speed_limit... no
checking for curlopt_low_speed_time... no
checking for curlopt_max_send_speed_large... no
checking for curlopt_max_recv_speed_large... no
checking for curlopt_maxconnects... no
checking for curlopt_closepolicy... no
checking for curlopt_fresh_connect... no
checking for curlopt_forbid_reuse... no
checking for curlopt_connecttimeout... no
checking for curlopt_connecttimeout_ms... no
checking for curlopt_ipresolve... no
checking for curl_ipresolve_whatever... no
checking for curl_ipresolve_v4... no
checking for curl_ipresolve_v6... no
checking for curlopt_connect_only... no
checking for curlopt_use_ssl... no
checking for curlusessl_none... no
checking for curlusessl_try... no
checking for curlusessl_control... no
checking for curlusessl_all... no
checking for curlopt_resolve... no
checking for curlopt_sslcert... no
checking for curlopt_sslcerttype... no
checking for curlopt_sslkey... no
checking for curlopt_sslkeytype... no
checking for curlopt_keypasswd... no
checking for curlopt_sslengine... no
checking for curlopt_sslengine_default... no
checking for curlopt_sslversion... no
checking for curl_sslversion_default... no
checking for CURL_SSLVERSION_TLSv1... no
checking for CURL_SSLVERSION_SSLv2... no
checking for CURL_SSLVERSION_SSLv3... no
checking for curlopt_ssl_verifypeer... no
checking for curlopt_cainfo... no
checking for curlopt_issuercert... no
checking for curlopt_capath... no
checking for curlopt_crlfile... no
checking for curlopt_ssl_verifyhost... no
checking for curlopt_certinfo... no
checking for curlopt_random_file... no
checking for curlopt_egdsocket... no
checking for curlopt_ssl_cipher_list... no
checking for curlopt_ssl_sessionid_cache... no
checking for curlopt_krblevel... no
checking for curlopt_ssh_auth_types... no
checking for curlopt_ssh_host_public_key_md5... no
checking for curlopt_ssh_public_keyfile... no
checking for curlopt_ssh_private_keyfile... no
checking for curlopt_ssh_knownhosts... no
checking for curlopt_ssh_keyfunction... no
checking for curlkhstat_fine_add_to_file... no
checking for curlkhstat_fine... no
checking for curlkhstat_reject... no
checking for curlkhstat_defer... no
checking for curlopt_ssh_keydata... no
checking for curlopt_private... no
checking for curlopt_share... no
checking for curlopt_new_file_perms... no
checking for curlopt_new_directory_perms... no
checking for curlopt_telnetoptions... no
checking for curle_not_built_in... no
checking for curle_obsolete... no
checking for Ruby 1.9 Hash... yes
checking for Ruby 1.9 st.h... yes
checking for curl_easy_escape... no
checking for rb_thread_blocking_region()... yes
creating curb_config.h
creating Makefile
make
gcc -I. -I/home/jophine/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-linux -I/home/jophine/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/home/jophine/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\"curb_config.h\" -I/home/jophine/.rvm/usr/include -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -g -Wall -o curb_easy.o -c curb_easy.c
In file included from /usr/include/curl/curl.h:35,
from curb.h:12,
from curb_easy.h:10,
from curb_easy.c:7:
/usr/include/curl/curlbuild.h:6:26: error: curlbuild-64.h: No such file or directory
In file included from /usr/include/curl/curl.h:36,
from curb.h:12,
from curb_easy.h:10,
from curb_easy.c:7:
/usr/include/curl/curlrules.h:80:4: error: #error "CURL_SIZEOF_LONG definition is missing!"
In file included from /usr/include/curl/curl.h:36,
from curb.h:12,
from curb_easy.h:10,
from curb_easy.c:7:
/usr/include/curl/curlrules.h:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Compilation_aborted_CURL_SIZEOF_LONG_is_missing’
/usr/include/curl/curlrules.h:85:4: error: #error "CURL_TYPEOF_CURL_SOCKLEN_T definition is missing!"
/usr/include/curl/curlrules.h:90:4: error: #error "CURL_SIZEOF_CURL_SOCKLEN_T definition is missing!"
/usr/include/curl/curlrules.h:95:4: error: #error "CURL_TYPEOF_CURL_OFF_T definition is missing!"
/usr/include/curl/curlrules.h:100:4: error: #error "CURL_FORMAT_CURL_OFF_T definition is missing!"
/usr/include/curl/curlrules.h:105:4: error: #error "CURL_FORMAT_CURL_OFF_TU definition is missing!"
/usr/include/curl/curlrules.h:110:4: error: #error "CURL_FORMAT_OFF_T definition is missing!"
/usr/include/curl/curlrules.h:115:4: error: #error "CURL_SIZEOF_CURL_OFF_T definition is missing!"
/usr/include/curl/curlrules.h:120:4: error: #error "CURL_SUFFIX_CURL_OFF_T definition is missing!"
/usr/include/curl/curlrules.h:125:4: error: #error "CURL_SUFFIX_CURL_OFF_TU definition is missing!"
/usr/include/curl/curlrules.h:154: error: ‘curl_off_t’ undeclared here (not in a function)
/usr/include/curl/curlrules.h:154: error: ‘CURL_SIZEOF_CURL_OFF_T’ undeclared here (not in a function)
/usr/include/curl/curlrules.h:174: error: ‘curl_socklen_t’ undeclared here (not in a function)
/usr/include/curl/curlrules.h:174: error: ‘CURL_SIZEOF_CURL_SOCKLEN_T’ undeclared here (not in a function)
In file included from curb.h:12,
from curb_easy.h:10,
from curb_easy.c:7:
/usr/include/curl/curl.h:206: error: expected declaration specifiers or ‘...’ before ‘curl_off_t’
curb_easy.c: In function ‘callback_exception’:
curb_easy.c:31: warning: unused parameter ‘unused’
curb_easy.c: In function ‘proc_debug_handler’:
curb_easy.c:160: warning: unused variable ‘procret’
curb_easy.c:155: warning: unused parameter ‘curl’
curb_easy.c: In function ‘ruby_curl_easy_timeout_get’:
curb_easy.c:1054: warning: unused parameter ‘timeout’
curb_easy.c: In function ‘ruby_curl_easy_connect_timeout_get’:
curb_easy.c:1080: warning: unused parameter ‘connect_timeout’
curb_easy.c: In function ‘ruby_curl_easy_dns_cache_timeout_get’:
curb_easy.c:1103: warning: unused parameter ‘dns_cache_timeout’
curb_easy.c: In function ‘ruby_curl_easy_ftp_response_timeout_get’:
curb_easy.c:1130: warning: unused parameter ‘ftp_response_timeout’
curb_easy.c: In function ‘ruby_curl_easy_low_speed_limit_get’:
curb_easy.c:1153: warning: unused parameter ‘low_speed_limit’
curb_easy.c: In function ‘ruby_curl_easy_low_speed_time_get’:
curb_easy.c:1175: warning: unused parameter ‘low_speed_time’
curb_easy.c: In function ‘ruby_curl_easy_username_set’:
curb_easy.c:1185: warning: unused parameter ‘self’
curb_easy.c:1185: warning: unused parameter ‘username’
curb_easy.c: In function ‘ruby_curl_easy_username_get’:
curb_easy.c:1199: warning: unused parameter ‘self’
curb_easy.c:1199: warning: unused parameter ‘username’
curb_easy.c: In function ‘ruby_curl_easy_password_set’:
curb_easy.c:1213: warning: unused parameter ‘self’
curb_easy.c:1213: warning: unused parameter ‘password’
curb_easy.c: In function ‘ruby_curl_easy_password_get’:
curb_easy.c:1227: warning: unused parameter ‘self’
curb_easy.c:1227: warning: unused parameter ‘password’
curb_easy.c: In function ‘ruby_curl_easy_ssl_version_get’:
curb_easy.c:1253: warning: unused parameter ‘ssl_version’
curb_easy.c: In function ‘ruby_curl_easy_use_ssl_get’:
curb_easy.c:1274: warning: unused parameter ‘use_ssl’
curb_easy.c: In function ‘ruby_curl_easy_ftp_filemethod_get’:
curb_easy.c:1295: warning: unused parameter ‘ftp_filemethod’
curb_easy.c: In function ‘ruby_curl_easy_cleanup’:
curb_easy.c:2146: warning: unused parameter ‘self’
curb_easy.c: In function ‘ruby_curl_easy_file_time_get’:
curb_easy.c:2530: warning: unused parameter ‘self’
curb_easy.c: In function ‘ruby_curl_easy_redirect_time_get’:
curb_easy.c:2644: warning: unused parameter ‘self’
curb_easy.c: In function ‘ruby_curl_easy_redirect_count_get’:
curb_easy.c:2667: warning: unused parameter ‘self’
curb_easy.c: In function ‘ruby_curl_easy_os_errno_get’:
curb_easy.c:2895: warning: unused parameter ‘self’
curb_easy.c: In function ‘ruby_curl_easy_num_connects_get’:
curb_easy.c:2924: warning: unused parameter ‘self’
curb_easy.c: In function ‘ruby_curl_easy_ftp_entry_path_get’:
curb_easy.c:2965: warning: unused parameter ‘self’
curb_easy.c: In function ‘ruby_curl_easy_get_opt’:
curb_easy.c:3093: warning: unused parameter ‘self’
curb_easy.c:3093: warning: unused parameter ‘opt’
curb_easy.c: In function ‘ruby_curl_easy_error_message’:
curb_easy.c:3191: warning: unused parameter ‘klass’
make: *** [curb_easy.o] Error 1
Gem files will remain installed in /home/jophine/.rvm/gems/ruby-1.9.2-p290#rails/gems/curb-0.7.18 for inspection.
Results logged to /home/jophine/.rvm/gems/ruby-1.9.2-p290#rails/gems/curb-0.7.18/ext/gem_make.out
An error occured while installing curb (0.7.18), and Bundler cannot continue.
Make sure that `gem install curb -v '0.7.18'` succeeds before bundling.
I am not aware of this error. Anyone please help. Thanks in Advance.
This is the specific library I had to install to get it to work.
libcurl4-openssl-dev
Hope this helps.
sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev
And then
sudo gem install curb
Related
bigdecimal gem 1.4.1 fails to build
Trying to get bigdecimal 1.4.1. or 1.3.5 to compile in a rails project. I get: bobwalsh#iMac2021 webservices % gem install bigdecimal -v '1.3.5' Building native extensions. This could take a while... ERROR: Error installing bigdecimal: ERROR: Failed to build gem native extension. current directory: /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bigdecimal-1.3.5/ext/bigdecimal /Users/bobwalsh/.rbenv/versions/3.1.2/bin/ruby -I /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/site_ruby/3.1.0 extconf.rb checking for labs() in stdlib.h... yes checking for llabs() in stdlib.h... yes checking for finite() in math.h... yes checking for isfinite() in math.h... no checking for struct RRational in ruby.h... no checking for rb_rational_num() in ruby.h... yes checking for rb_rational_den() in ruby.h... yes checking for rb_array_const_ptr() in ruby.h... yes checking for rb_sym2str() in ruby.h... yes creating Makefile current directory: /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bigdecimal-1.3.5/ext/bigdecimal make DESTDIR\= sitearchdir\=./.gem.20221229-75388-86psx7 sitelibdir\=./.gem.20221229-75388-86psx7 clean current directory: /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bigdecimal-1.3.5/ext/bigdecimal make DESTDIR\= sitearchdir\=./.gem.20221229-75388-86psx7 sitelibdir\=./.gem.20221229-75388-86psx7 compiling bigdecimal.c bigdecimal.c:366:28: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] INT2NUM(p->MaxPrec*VpBaseFig())); ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~ bigdecimal.c:365:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] obj = rb_assoc_new(INT2NUM(p->Prec*VpBaseFig()), ~~~~~~~ ~~~~~~~^~~~~~~~~~~~ bigdecimal.c:439:5: error: implicit declaration of function 'rb_check_safe_obj' is invalid in C99 [-Werror,-Wimplicit-function-declaration] rb_check_safe_obj(str); ^ bigdecimal.c:439:5: note: did you mean 'rb_check_safe_str'? /Users/bobwalsh/.rbenv/versions/3.1.2/include/ruby-3.1.0/ruby/internal/core/rstring.h:383:6: note: 'rb_check_safe_str' declared here void rb_check_safe_str(VALUE); ^ bigdecimal.c:2047:6: error: implicit declaration of function 'rb_check_safe_obj' is invalid in C99 [-Werror,-Wimplicit-function-declaration] rb_check_safe_obj(f); ^ bigdecimal.c:2152:30: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] rb_ary_push(obj, INT2NUM(e)); ~~~~~~~ ^ bigdecimal.c:2165:20: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] return INT2NUM(e); ~~~~~~~ ^ bigdecimal.c:2737:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] VALUE nCur = INT2NUM(VpGetPrecLimit()); ~~~~~~~ ^~~~~~~~~~~~~~~~ 5 warnings and 2 errors generated. make: *** [bigdecimal.o] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bigdecimal-1.3.5 for inspection. Results logged to /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/extensions/x86_64-darwin-21/3.1.0/bigdecimal-1.3.5/gem_make.out What do I do to get this working?
rsconnect (& PKI installation) failure
im trying to install rsconnect to connect to shinyapps.io for online hosting. This is my first app so bear with me. while installing rsconnect through: install.packages("rsconnect") it runs through the installation with the checks etc: checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... no configure: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/ssl.h: proceeding with the compiler's result checking for openssl/ssl.h... yes checking openssl/rsa.h usability... yes checking openssl/rsa.h presence... no configure: WARNING: openssl/rsa.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/rsa.h: proceeding with the compiler's result checking for openssl/rsa.h... yes checking for library containing RSA_generate_key_ex... no configure: error: Cannot find usable crypto library ERROR: configuration failed for package ‘PKI’ * removing ‘/cnN0dWRpby1yYWNoYW5kR/x86_64-pc-linux-gnu-library/3.5/PKI’ Warning in install.packages : installation of package ‘PKI’ had non-zero exit status ERROR: dependency ‘PKI’ is not available for package ‘rsconnect’ * removing ‘/cnN0dWRpby1yYWNoYW5k/R/x86_64-pc-linux-gnu-library/3.5/rsconnect’ Warning in install.packages : installation of package ‘rsconnect’ had non-zero exit status A dependancy on PKI seems to be killing this installation. Installation of PKI separately though install.packages("PKI") also fails with the warning configure: error: Cannot find usable crypto library ERROR: configuration failed for package ‘PKI’ I am running on an enterprise VM that i do not have normal access to, but can only use apps installed therein. I do not have access to the VM terminal either unfortunately.
ZLIB not find while installing nghttp2
I want to install nghttp2 for my mac os but after I run command brew install nghttp2, I face this output: Warning: You are using OS X 10.12. We do not provide support for this pre-release version. You may encounter build failures or other breakages. ==> Downloading https://github.com/tatsuhirot/nghttp2/releases/download/v1.7.1/ Already downloaded: /Library/Caches/Homebrew/nghttp2-1.7.1.tar.xz ==> ./configure --prefix=/usr/local/Cellar/nghttp2/1.7.1 --disable-silent-rules Last 15 lines from /Users/kianooshabbasi/Library/Logs/Homebrew/nghttp2/01.configure: checking for ev_time in -lev... yes checking ev.h usability... yes checking ev.h presence... yes checking for ev.h... yes checking for OPENSSL... yes checking for LIBEVENT_OPENSSL... yes checking for JANSSON... yes checking for xml2-config... /usr/local/opt/libxml2/bin/xml2-config checking for libxml - version >= 2.7.7... yes (version 2.9.3) checking for library containing malloc_stats_print... no checking for library containing je_malloc_stats_print... no checking for LIBSPDYLAY... no configure: Package 'zlib', required by 'libspdylay', not found configure: The SPDY support in nghttpx and h2load will be disabled. configure: error: spdylay was requested (--with-spdylay) but not found As in some similar responses said, I tried xcode-select --install and brew upgrade but the problem was not solved.
Can't install ruby gem xmlparser
I am trying to install this gem xmlparser so that I can use the class XSD::QName to read from XML. It asked me to install expat and xmlparse, and then after several other packages and attempts I have this new problem: "Failed to build gem native extension Checking for ntohl() in -lsocket... no etc etc etc etc make failed, exit code 2" #edit Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby2.1 extconf.rb checking for expat.h... yes checking for XML_ParserCreate() in -lexpat... yes checking for XML_SetNotStandaloneHandler()... yes checking for XML_SetParamEntityParsing()... yes checking for XML_SetDoctypeDeclHandler()... yes checking for XML_ParserReset()... yes checking for XML_SetSkippedEntityHandler()... yes checking for XML_GetFeatureList()... yes checking for XML_UseForeignDTD()... yes checking for XML_GetIdAttributeIndex()... yes checking for ntohl() in -lsocket... no creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling xmlparser.c xmlparser.c: In function ‘XMLParser_parse’: xmlparser.c:1783:2: error: format not a string literal and no format arguments [-Werror=format-security] rb_raise(eXMLParserError, (char*)errStr); ^ xmlparser.c:1832:5: error: format not a string literal and no format arguments [-Werror=format-security] rb_raise(eXMLParserError, (char*)errStr); ^ cc1: some warnings being treated as errors Makefile:224: recipe for target 'xmlparser.o' failed make: *** [xmlparser.o] Error 1 make failed, exit code 2 Gem files will remain installed in /tmp/bundler20151111-18724-f3sw3fxmlparser-0.7.2.1/gems/xmlparser-0.7.2.1 for inspection. Results logged to /tmp/bundler20151111-18724-f3sw3fxmlparser-0.7.2.1/extensions/x86-linux/2.1.0/xmlparser-0.7.2.1/gem_make.out
Can't build eventmachine 1.0.3 Mac OS X 10.9.2
I want to reinstall my ruby on rails environment, but it failed. I work on Mac OS X 10.9.2, using Ruby 2.1.2, Apple LLVM version 5.1 (clang-503.0.40) I want to run: gem install eventmachine -v '1.0.3' But I get: Building native extensions. This could take a while... ERROR: Error installing eventmachine: ERROR: Failed to build gem native extension. /Users/nm/.rbenv/versions/2.1.2/bin/ruby 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... no checking for __NR_inotify_init in sys/syscall.h... no checking for writev() in sys/uio.h... yes checking for rb_wait_for_single_fd()... yes checking for rb_enable_interrupt()... no checking for rb_time_new()... yes checking for sys/event.h... yes checking for sys/queue.h... yes creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling binder.cpp compiling cmain.cpp compiling ed.cpp ed.cpp:987:18: warning: variable length arrays are a C99 feature [-Wvla-extension] struct iovec iov[ iovcnt ]; ^ 1 warning generated. compiling em.cpp em.cpp:75:2: warning: field 'LoopBreakerWriter' will be initialized after field 'NumCloseScheduled' [-Wreorder] LoopBreakerWriter (-1), ^ em.cpp:822:2: warning: 'rb_thread_blocking_region' is deprecated [-Wdeprecated-declarations] rb_thread_blocking_region (_SelectDataSelect, (void*)this, RUBY_UBF_IO, 0); ^ /Users/nm/.rbenv/versions/2.1.2/include/ruby-2.1.0/ruby/intern.h:870:18: note: 'rb_thread_blocking_region' declared here DEPRECATED(VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, ^ /Users/nm/.rbenv/versions/2.1.2/include/ruby-2.1.0/x86_64-darwin13.0/ruby/config.h:114:52: note: expanded from macro 'DEPRECATED' #define DEPRECATED(x) __attribute__ ((deprecated)) x ^ em.cpp:946:6: warning: 'rb_thread_select' is deprecated [-Wdeprecated-declarations] EmSelect (0, NULL, NULL, NULL, &tv); ^ ./em.h:25:20: note: expanded from macro 'EmSelect' #define EmSelect rb_thread_select ^ /Users/nm/.rbenv/versions/2.1.2/include/ruby-2.1.0/ruby/intern.h:440:16: note: 'rb_thread_select' declared here DEPRECATED(int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *)); ^ /Users/nm/.rbenv/versions/2.1.2/include/ruby-2.1.0/x86_64-darwin13.0/ruby/config.h:114:52: note: expanded from macro 'DEPRECATED' #define DEPRECATED(x) __attribute__ ((deprecated)) x ^ em.cpp:1109:40: error: invalid operands to binary expression ('__bind<int &, sockaddr *&, int &>' and 'int') if (bind (sd, bind_to, bind_to_size) < 0) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ em.cpp:1522:6: error: value of type '__bind<int &, sockaddr *&, int &>' is not contextually convertible to 'bool' if (bind (sd_accept, bind_here, bind_size)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ em.cpp:1600:53: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned long>' and 'int') if (bind (sd, (struct sockaddr*)&sin, sizeof(sin)) != 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ em.cpp:1869:6: error: value of type '__bind<int &, sockaddr *, unsigned long>' is not contextually convertible to 'bool' if (bind (sd_accept, (struct sockaddr*)&s_sun, sizeof(s_sun))) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from em.cpp:23: In file included from ./project.h:150: ./em.h:189:12: warning: private field 'NextHeartbeatTime' is not used [-Wunused-private-field] uint64_t NextHeartbeatTime; ^ ./em.h:221:22: warning: private field 'inotify' is not used [-Wunused-private-field] InotifyDescriptor *inotify; // pollable descriptor for our inotify instance ^ 5 warnings and 4 errors generated. make: *** [em.o] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/nm/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3 for inspection. Results logged to /Users/nm/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/eventmachine-1.0.3/gem_make.out When I install version 1.0.1 or 1.0.2, I will get some similar errors. Someone can tell me why? thanks.
From the docs it looks like eventmachine does not yet support Ruby 2+ EventMachine supports Ruby 1.8.7, 1.9.2, REE, JRuby and works well on Windows as well as many operating systems from the Unix family (Linux, Mac OS X, BSD flavors).