Comments (5)
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.
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.
I think libcurl 7.6. What version you advise
from node-libcurl.
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.
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)
- How can I write a custom request asynchronously? HOT 1
- [feat] rewrite `node-libcurl` with, the **ONLY** isomorphic way, napi HOT 1
- Curl Easy segmentation fault with requests to external site HOT 3
- Expected npx node-libcurl $URL to work as curl $URL HOT 1
- TypeError: Class extends value #<Object> is not a constructor or null HOT 1
- HTTP_CONTENT_DECODING = false but still decodes the server's responses HOT 1
- How to make multiple curly instances maintain separate connections to same host? HOT 2
- unable to npm install HOT 3
- npm install issues. HOT 5
- libcurl vuln HOT 2
- Add prebuilt binaries for nodejs 20 LTS HOT 13
- read raw msg HOT 3
- Does node-libcurl support res_init? HOT 1
- Error after upgrade to Node 20.10 ...: ERR_DLOPEN_FAILED HOT 2
- SFTP / SSH stuck on login when using Curl/Multi and password auth HOT 2
- Curly - Close connection - Timeout Exception HOT 3
- Cannot install HOT 3
- Send binary data with HTTPPOST option HOT 1
- Hanging on PROTOCONNECTING
- Add prebuilt binaries for node 21(macOS) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-libcurl.