rsconnect (& PKI installation) failure - pki

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.

Related

YoctoProject error with automake and system clock

Im running yocto to build an image inside docker, but after all processes i get error related to automake. This is the error:
checking whether build environment is sane...
configure: error: newly created file is older than distributed files!
Check your system clock
The log is:
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_preconfigure finished
DEBUG: Executing python function autotools_aclocals
DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
DEBUG: Python function autotools_aclocals finished
DEBUG: Executing shell function do_configure
NOTE: Running ../automake-1.15.1/configure --build=x86_64-linux --host=x86_64-linux --target=x86_64-linux --prefix=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/usr --exec_prefix=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/usr --bindir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/usr/bin --sbindir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/usr/sbin --libexecdir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/usr/libexec --datadir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/usr/share --sysconfdir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/etc --sharedstatedir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/com --localstatedir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/var --libdir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/usr/lib --includedir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/usr/include --oldincludedir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/usr/include --infodir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/usr/share/info --mandir=/shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/recipe-sysroot-native/usr/share/man --disable-silent-rules --disable-dependency-tracking --disable-static
configure: WARNING: unrecognized options: --disable-dependency-tracking, --disable-static
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /shared/rpi3-custom/build/tmp/hosttools/install -c
checking whether build environment is sane... configure: error: newly created file is older than distributed files!
Check your system clock
NOTE: The following config.log files may provide further information.
NOTE: /shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/build/config.log
ERROR: configure failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_configure (log file is located at /shared/rpi3-custom/build/tmp/work/x86_64-linux/automake-native/1.15.1-r0/temp/log.do_configure.11873)
In latest Yocto version, there is this patch that removes clock sanity check.

Haskell stack not seeing libgmp.so.10 provided in an environment module

I'm starting to try to work on a Linux computing cluster where some programs and libraries are made available through a system of environment modules.
I would like to install Haskell programs using stack (I should probably say that I'm not yet very familiar with stack).
stack is available as a module, so after doing module load stack, I tried stack setup, which failed, complaining about gmp missing:
$ stack setup
Preparing to install GHC (gmp4) to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-gmp4-8.0.1.
Installed GHC.
The GHC located at
/pasteur/homes/bli/.stack/programs/x86_64-linux/ghc-gmp4-8.0.1/bin/ghc
failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Running
/pasteur/homes/bli/.stack/programs/x86_64-linux/ghc-gmp4-8.0.1/bin/ghc
/tmp/stack-sanity-check24665/Main.hs -no-user-package-db in directory
/tmp/stack-sanity-check24665/ exited with ExitFailure 1
[1 of 1] Compiling Main (
/tmp/stack-sanity-check24665/Main.hs, /tmp/stack-sanity-check24665/Main.o )
Linking /tmp/stack-sanity-check24665/Main ...
/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
The admin of the cluster told me that gmp was also available as an environment module, so I did module load gmp before trying again, and it seemed to work:
$ stack setup
Writing implicit global project config file to:
/pasteur/homes/bli/.stack/global-project/stack.yaml
Note: You can change the snapshot via the resolver field there.
Using latest snapshot resolver: lts-8.23
Downloaded lts-8.23 build plan.
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading root
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading timestamp
Downloading snapshot
Downloading mirrors
Cannot update index (no local copy)
Downloading index
Updated package list downloaded
Populated index cache.
Preparing to install GHC (gmp4) to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-gmp4-8.0.2.
Installed GHC.
stack will use a sandboxed GHC it installed
For more information on paths, see 'stack path' and 'stack exec env'
To use this GHC and packages outside of a project, consider using:
stack ghc, stack ghci, stack runghc, or stack exec
Then I tried to install hlint using stack:
$ stack install hlint
clock-0.7.2: configure
uniplate-1.6.12: download
clock-0.7.2: build
old-time-1.1.0.3: configure
Package old-time uses a custom Cabal build, but does not use a
custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
old-time-1.1.0.3: build
Package old-time uses a custom Cabal build, but does not use a
custom-setup stanza
uniplate-1.6.12: configure
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
uniplate-1.6.12: build
uniplate-1.6.12: copy/register
Progress: 3/7
-- While building package old-time-1.1.0.3 using:
/tmp/stack8279/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/setup/setup
--builddir=.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0 build
--ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to:
/pasteur/homes/bli/.stack/global-project/.stack-work/logs/old-time-1.1.0.3.log
[1 of 2] Compiling Main (
/tmp/stack8279/old-time-1.1.0.3/Setup.hs,
/tmp/stack8279/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/setup/Main.o
)
[2 of 2] Compiling StackSetupShim (
/pasteur/homes/bli/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs,
/tmp/stack8279/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/setup/StackSetupShim.o
)
Linking
/tmp/stack8279/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/setup/setup
...
Configuring old-time-1.1.0.3...
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
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 sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for ftime... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for gettimeofday... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... (cached) yes
checking whether altzone is declared... no
configure: creating ./config.status
config.status: creating include/HsTimeConfig.h
configure: WARNING: unrecognized options: --with-compiler
Building old-time-1.1.0.3...
Preprocessing library old-time-1.1.0.3...
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Time_hsc_make:
error while loading shared libraries: libgmp.so.10: cannot open shared
object file: No such file or directory
running
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Time_hsc_make
failed (exit code 127)
command was:
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Time_hsc_make
>.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Time.hs
-- While building package clock-0.7.2 using:
/pasteur/homes/bli/.stack/setup-exe-cache/x86_64-linux-gmp4/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2
--builddir=.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0 build
--ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to:
/pasteur/homes/bli/.stack/global-project/.stack-work/logs/clock-0.7.2.log
Configuring clock-0.7.2...
Building clock-0.7.2...
Preprocessing library clock-0.7.2...
Clock.hsc:44:1: warning: "hsc_alignment" redefined
In file included from
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Clock_hsc_make.c:1:
/pasteur/homes/bli/.stack/programs/x86_64-linux/ghc-gmp4-8.0.2/lib/ghc-8.0.2/template-hsc.h:88:1:
warning: this is the location of the previous definition
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Clock_hsc_make:
error while loading shared libraries: libgmp.so.10: cannot open shared
object file: No such file or directory
running
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Clock_hsc_make
failed (exit code 127)
command was:
.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Clock_hsc_make
>.stack-work/dist/x86_64-linux-gmp4/Cabal-1.24.2.0/build/System/Clock.hs
It seems that when compiling ghc, stack was able to see gmp, but not when installing some packages.
I notice this warning: configure: WARNING: unrecognized options: --with-compiler. I don't know if this is relevant.
The environment module system seems to work by exporting some environment variables:
$ module show gmp
-------------------------------------------------------------------
/local/gensoft2/devmodules/gmp/6.0.0:
module-whatis Set environnement for gmp (6.0.0)
module-whatis topic_3316
prepend-path LIBRARY_PATH /local/gensoft2/lib/gmp/6.0.0/lib
prepend-path LD_RUN_PATH /local/gensoft2/lib/gmp/6.0.0/lib
prepend-path -d LDFLAGS -L/local/gensoft2/lib/gmp/6.0.0/lib
prepend-path CMAKE_LIBRARY_PATH /local/gensoft2/lib/gmp/6.0.0/lib
prepend-path C_INCLUDE_PATH /local/gensoft2/lib/gmp/6.0.0/include
prepend-path CPLUS_INCLUDE_PATH /local/gensoft2/lib/gmp/6.0.0/include
prepend-path CMAKE_INCLUDE_PATH /local/gensoft2/lib/gmp/6.0.0/include
prepend-path -d CPPFLAGS -I/local/gensoft2/lib/gmp/6.0.0/include
setenv GMP_ROOT /local/gensoft2/lib/gmp/6.0.0
-------------------------------------------------------------------
The administrator told me that these environment variable are not always taken into account, and suggested to export LDFLAGS="-Wl,-rpath,$GMP_ROOT/lib $LDFLAGS" in my environment before trying, but this did not seem to have any effect on the issue.
I still obtain the following: error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory
How can I get stack to reliably take into account development libraries that the environment modules system provides?
Edit
It seems that I can give the missing library paths on the command line to stack as follows:
$ stack --extra-lib-dirs=/local/gensoft2/lib/gmp/6.0.0/lib --extra-include-dirs=/local/gensoft2/lib/gmp/6.0.0/include install hlint
old-time-1.1.0.3: configure
Package old-time uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
old-time-1.1.0.3: build
Package old-time uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
clock-0.7.2: configure
clock-0.7.2: build
clock-0.7.2: copy/register
extra-1.5.3: download
extra-1.5.3: configure
extra-1.5.3: build
old-time-1.1.0.3: copy/register
Package old-time uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
Package old-time uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
cpphs-1.20.8: download
cpphs-1.20.8: configure
cpphs-1.20.8: build
extra-1.5.3: copy/register
cpphs-1.20.8: copy/register
haskell-src-exts-1.18.2: download
haskell-src-exts-1.18.2: configure
haskell-src-exts-1.18.2: build
haskell-src-exts-1.18.2: copy/register
hlint-1.9.41: download
hlint-1.9.41: configure
hlint-1.9.41: build
hlint-1.9.41: copy/register
Completed 6 action(s).
Copying from /pasteur/homes/bli/.stack/snapshots/x86_64-linux-gmp4/lts-8.23/8.0.2/bin/hlint to /pasteur/homes/bli/.local/bin/hlint
Copied executables to /pasteur/homes/bli/.local/bin:
- hlint
Is there a way to have this done automatically for every possible development library loaded by module?
I'm not sure this is completely reliable (environment modules for development libraries might not all export these variables), but passing -extra-include-dirs=${CMAKE_INCLUDE_PATH} and --extra-lib-dirs=${CMAKE_LIBRARY_PATH} to stack seems to work at least when installing hlint, scan and doctest.
I'm a bit confused about what would be the correct configuration file to use, and how, to make this automatic.
It seems that the corresponding settings in ~/.stack/config.yaml are taken into account (although the documentation mentions ~/.stack/global-project/stack.yaml).
The above-mentioned environment variables cannot be used as-is in the config file. I haven't determined what the exact reason. This could be either because their expansion results in something not syntactically correct (paths separated by ":" instead of ","), or because only plain text is permitted in the config file.
Therefore, the following works in the present case, but is not a general solution:
extra-include-dirs: [/local/gensoft2/lib/gmp/6.0.0/include]
extra-lib-dirs: [/local/gensoft2/lib/gmp/6.0.0/lib]

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

curb gem is not installing in linux redhat

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

Resources