GithubHelp home page GithubHelp logo

GLIBC 2.14 issue about node-libcurl HOT 5 CLOSED

jcmais avatar jcmais commented on July 22, 2024
GLIBC 2.14 issue

from node-libcurl.

Comments (5)

s-alpha-1 avatar s-alpha-1 commented on July 22, 2024

UPDATED:

I tried with --build-from-source, here is error

make: Entering directory `/root/node_modules/node-libcurl/build'
  CXX(target) Release/obj.target/node_libcurl/src/node_libcurl.o
  CXX(target) Release/obj.target/node_libcurl/src/Easy.o
../src/Easy.cc: In static member function ‘static size_t NodeLibcurl::Easy::ReadFunction(char*, size_t, size_t, void*)’:
../src/Easy.cc:306:22: warning: unused variable ‘len’ [-Wunused-variable]
         unsigned int len = (unsigned int) ( size * nmemb );
                      ^
../src/Easy.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeLibcurl::Easy::SetOpt(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/Easy.cc:610:34: error: ‘CURLE_UNKNOWN_OPTION’ was not declared in this scope
         CURLcode setOptRetCode = CURLE_UNKNOWN_OPTION;
                                  ^
make: *** [Release/obj.target/node_libcurl/src/Easy.o] Error 1
make: Leaving directory `/root/node_modules/node-libcurl/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/root/node_modules/node-libcurl/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 2.6.32-573.12.1.el6.x86_64
gyp ERR! command "/usr/bin/node" "/root/node_modules/node-libcurl/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/root/node_modules/node-libcurl/lib/binding/node_libcurl.node" "--module_name=node_libcurl" "--module_path=/root/node_modules/node-libcurl/lib/binding"
gyp ERR! cwd /root/node_modules/node-libcurl
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 

Any advice?

from node-libcurl.

JCMais avatar JCMais commented on July 22, 2024

What is the libcurl version being used?

error: ‘CURLE_UNKNOWN_OPTION’ was not declared in this scope

This means that the current libcurl doesn't have the symbol CURLE_UNKNOWN_OPTION defined, and it was added in version 7.21.5, which is 4.6 years old.

from node-libcurl.

s-alpha-1 avatar s-alpha-1 commented on July 22, 2024

I think libcurl 7.6. What version you advise

from node-libcurl.

JCMais avatar JCMais commented on July 22, 2024

That is really really old (almost 15 years old). The addon has support for versions above 7.30. But if you can, try installing the latest one, 7.46.

from node-libcurl.

s-alpha-1 avatar s-alpha-1 commented on July 22, 2024

Thanks @JCMais works
For future reference

Check latest release here http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/repoview/city-fan.org-release.html

$rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm
$yum update libcurl
$curl-config --version
  libcurl 7.46.0

from node-libcurl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.