GithubHelp home page GithubHelp logo

Comments (12)

JCMais avatar JCMais commented on June 24, 2024

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.

ali-khabbaz avatar ali-khabbaz commented on June 24, 2024

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.

JCMais avatar JCMais commented on June 24, 2024

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.

maddo7 avatar maddo7 commented on June 24, 2024

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.

JCMais avatar JCMais commented on June 24, 2024

This is really strange, since 4.8 has support for c++11. Run npm install node-libcurl --build-from-source --verbose

from node-libcurl.

maddo7 avatar maddo7 commented on June 24, 2024

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.

JCMais avatar JCMais commented on June 24, 2024

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.

maddo7 avatar maddo7 commented on June 24, 2024

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:

http://pastebin.com/tRseCus5

Other than that I have the npm-debug.log from the command

from node-libcurl.

maddo7 avatar maddo7 commented on June 24, 2024

It seems g++ was missing, once I got that the error wasn't present anymore.

from node-libcurl.

JCMais avatar JCMais commented on June 24, 2024

no more errors, you got it running? 😄

from node-libcurl.

maddo7 avatar maddo7 commented on June 24, 2024

Yes, everything fine now.

from node-libcurl.

JCMais avatar JCMais commented on June 24, 2024

Nice to hear!

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.