Giter Site home page Giter Site logo

curler's People

Contributors

rfrench avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

curler's Issues

It won't load

I'm running Node v0.10.25, and npm install curler succeeds correctly,
but when I'm trying to require("curler"):

> require("curler")
Error: Cannot find module 'curler'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)

Changing "main": "curler.node" to "main": "build/Release/curler.node", inpackage.json` should fix this.

Installation error

Hi, I'm getting error while trying to install curler ( npm i curler ) :

ERR! [email protected] install: node-waf configure build install
ERR! sh "-c" "node-waf configure build install" failed with 1
ERR!
ERR! Failed at the [email protected] install script.
ERR! This is most likely a problem with the curler package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR! node-waf configure build install
ERR! You can get their info via:
ERR! npm owner ls curler
ERR! There is likely additional logging output above.
ERR!
ERR! System Linux 2.6.37.6-smp
ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "i" "curler"
ERR! cwd /var/www/node/legal/database
ERR! node -v v0.8.2
ERR! npm -v 1.1.21
ERR! code ELIFECYCLE
ERR! message [email protected] install: node-waf configure build install
ERR! message sh "-c" "node-waf configure build install" failed with 1
ERR! errno {}
verbose exit [ 1, true ]

Installation fails on linux

almad@namtar ~/project/apiary $ npm install curler
npm http GET https://registry.npmjs.org/curler
npm http 200 https://registry.npmjs.org/curler
npm http GET https://registry.npmjs.org/curler/-/curler-0.0.1.tgz
npm http 200 https://registry.npmjs.org/curler/-/curler-0.0.1.tgz

> [email protected] install /home/almad/project/apiary/node_modules/curler
> node-waf configure build install

Checking for program g++ or c++          : /usr/bin/g++ 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for node path                   : not found 
Checking for node prefix                 : ok /home/almad/.nvm/v0.8.19 
Checking for library curl                : yes 
'configure' finished successfully (1.930s)
Waf: Entering directory `/home/almad/project/apiary/node_modules/curler/build'
[1/3] cxx: src/curler.cc -> build/Release/src/curler_1.o
[2/3] cxx: src/curl_client.cc -> build/Release/src/curl_client_1.o
../src/curler.cc: In static member function ‘static int Curler::RequestWorker(eio_req*)’:
../src/curler.cc:135:28: error: ‘curlClient’ was not declared in this scope
../src/curler.cc:135:45: error: expected type-specifier
../src/curler.cc:135:45: error: expected ‘;’
../src/curler.cc:137:11: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
../src/curler.cc: In static member function ‘static std::string Curler::ToUpper(std::string)’:
../src/curler.cc:201:4: error: ‘transform’ is not a member of ‘std’
../src/curler.cc: In static member function ‘static std::string Curler::ToLower(std::string)’:
../src/curler.cc:206:4: error: ‘transform’ is not a member of ‘std’
Waf: Leaving directory `/home/almad/project/apiary/node_modules/curler/build'
Build failed:  -> task failed (err #1): 
        {task: cxx curler.cc -> curler_1.o}

> [email protected] preuninstall /home/almad/project/apiary/node_modules/curler
> rm -rf build/*

npm ERR! weird error 1
npm ERR! not ok code 0
almad@namtar ~/project/apiary $ g++ -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --enable-lto --enable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/python --enable-checking=release --disable-libgcj --enable-libstdcxx-time --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.6.3 p1.11, pie-0.5.2'
Thread model: posix
gcc version 4.6.3 (Gentoo 4.6.3 p1.11, pie-0.5.2) 
almad@namtar ~/project/apiary $ node -v
v0.8.19
almad@namtar ~/project/apiary $ npm -v
1.3.0
almad@namtar ~/project/apiary $ 

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.