Comments (12)
Try updating the package glibc-devel
(and this basically means recompiling every package on your distro, which is probably impractical).
Or, build the package directly from source: npm install node-libcurl --build-from-source
.
Related #44
from node-libcurl.
afer running "npm install node-libcurl --build-from-source"
i got the following errors :
cc1plus: error: unrecognized command line option "-std=c++11"
cc1plus: warning: unrecognized command line option "-Wno-narrowing"
make: *** [Release/obj.target/node_libcurl/src/node_libcurl.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
from node-libcurl.
Update gcc. How to here: http://superuser.com/questions/381160/how-to-install-gcc-4-7-x-4-8-x-on-centos
from node-libcurl.
Was somebody able to resolve this issue? I'm currently having troubles with it.
I installed the devtools-2 and ran scl enable devtoolset-2 bash
, gcc --version
shows
gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
but still if I run npm install node-libcurl --build-from-source
I get
cc1plus: error: unrecognized command line option "-std=c++11"
cc1plus: warning: unrecognized command line option "-Wno-narrowing"
from node-libcurl.
This is really strange, since 4.8 has support for c++11. Run npm install node-libcurl --build-from-source --verbose
from node-libcurl.
This gives
> [email protected] install /home/name/nodeapps/node_modules/node-libcurl
> node-pre-gyp install --fallback-to-build
make: Entering directory `/home/name/nodeapps/node_modules/node-libcurl/build'
g++ '-DNODE_GYP_MODULE_NAME=node_libcurl' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/root/.node-gyp/0.10.40/include/node -I/root/.node-gyp/0.10.40/src -I/root/.node-gyp/0.10.40/deps/uv/include -I/root/.node-gyp/0.10.40/deps/v8/include -I../node_modules/nan -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -std=c++11 -O2 -Wno-narrowing -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -MMD -MF ./Release/.deps/Release/obj.target/node_libcurl/src/node_libcurl.o.d.raw -c -o Release/obj.target/node_libcurl/src/node_libcurl.o ../src/node_libcurl.cc
make: Leaving directory `/home/name/nodeapps/node_modules/node-libcurl/build'
Failed to execute '/usr/bin/node /home/name/nodeapps/node_modules/node-libcurl/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/name/nodeapps/node_modules/node-libcurl/lib/binding/node_libcurl.node --module_name=node_libcurl --module_path=/home/name/nodeapps/node_modules/node-libcurl/lib/binding' (1)
from node-libcurl.
That is the full log? Because if yes I don't think I can help, the log is not showing anything useful.
Anyway, about the last error, if you can find where the binaries for the gcc 4.8 are located, you can:
export CC=/path/to/gcc
export CXX=/path/to/g++
npm install node-libcurl --build-from-source
This would fix any issue caused by wrong gcc version being used (if you have multiple ones installed)
from node-libcurl.
Strangely even when running these export commands with the right path nothing changed.
Ther's more output with the verbose option but it seems I can't send the output to a file so some part is missing:
Other than that I have the npm-debug.log from the command
from node-libcurl.
It seems g++ was missing, once I got that the error wasn't present anymore.
from node-libcurl.
no more errors, you got it running? 😄
from node-libcurl.
Yes, everything fine now.
from node-libcurl.
Nice to hear!
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.