Giter Site home page Giter Site logo

Comments (9)

cursorial avatar cursorial commented on April 28, 2024

Remove your directory and then follow the instructions from the README directly - you missed a few steps:

OS X

  1. git clone https://github.com/rage8885/OpenSC2K or download this repository
  2. cd OpenSC2K
  3. npm install downloads and installs the dependancies
  4. node_modules/.bin/electron-rebuild -f -w better-sqlite3 rebuilds Electron with better-sqlite3 bindings
  5. npm start to run

from opensc2k.

cursorial avatar cursorial commented on April 28, 2024

I've just noticed that it failed on the npm install step, sorry.

Could you try which libtool and post the output?

from opensc2k.

neoneye avatar neoneye commented on April 28, 2024

It's a local install of libtool

PROMPT> which libtool
/Users/neoneye/bin/libtool
PROMPT> ls -la /Users/neoneye/bin/libtool
lrwxr-xr-x  1 neoneye  staff  27 Dec 10  2013 /Users/neoneye/bin/libtool -> ../stow/libtool/bin/libtool

I can try install a newer version

from opensc2k.

cursorial avatar cursorial commented on April 28, 2024

Try alias libtool='usr/bin/libtool' and then try to remove OpenSC2K dir, clone again and try to reinstall.

from opensc2k.

neoneye avatar neoneye commented on April 28, 2024

Creating an alias for libtool didn't work. Wild speculation. I suspect that NPM doesn't use bash's aliases. I ended up renamed my local libtool, so that the system wide /usr/bin/libtool is being used. I'm not sure what version of libtool it is, since it's provided by Xcode/clang. It takes no --version parameter.

Now the OpenSC2K compiles and installs.

However running npm start does not work.

abcdef:OpenSC2K neoneye$ npm install

> [email protected] install /Users/neoneye/git/OpenSC2K/node_modules/integer
> node tools/install

  CXX(target) Release/obj.target/integer/src/integer.o
  SOLINK_MODULE(target) Release/integer.node

> [email protected] install /Users/neoneye/git/OpenSC2K/node_modules/better-sqlite3
> node deps/install

==> cwd: /Users/neoneye/git/OpenSC2K/node_modules/better-sqlite3
==> /Users/neoneye/git/OpenSC2K/node_modules/lzz-gyp/lzz-compiled/osx -hx hpp -sx cpp -k BETTER_SQLITE3 -d -hl -sl -e ./src/better_sqlite3.lzz
==> cwd: /Users/neoneye/git/OpenSC2K/node_modules/better-sqlite3
==> node-gyp rebuild
  ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3210000/sqlite3.c
  TOUCH Release/obj.target/deps/action_before_build.stamp
  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3210000/sqlite3.o
  LIBTOOL-STATIC Release/sqlite3.a
  CXX(target) Release/obj.target/better_sqlite3/src/better_sqlite3.o
  SOLINK_MODULE(target) Release/better_sqlite3.node
  CC(target) Release/obj.target/test_extension/deps/test_extension.o
  SOLINK_MODULE(target) Release/test_extension.node
added 4 packages in 32.698s
abcdef:OpenSC2K neoneye$ node_modules/.bin/electron-rebuild -f -w better-sqlite3
✔ Rebuild Complete
abcdef:OpenSC2K neoneye$ npm start

> [email protected] start /Users/neoneye/git/OpenSC2K
> electron .

/Users/neoneye/git/OpenSC2K/node_modules/electron/index.js:9
  throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
  ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at Object.<anonymous> (/Users/neoneye/git/OpenSC2K/node_modules/electron/index.js:9:9)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/neoneye/git/OpenSC2K/node_modules/electron/cli.js:3:16)
    at Module._compile (module.js:660:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `electron .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/neoneye/.npm/_logs/2018-02-10T22_13_41_909Z-debug.log
abcdef:OpenSC2K neoneye$

from opensc2k.

cursorial avatar cursorial commented on April 28, 2024

You missed a step between npm install and npm start.

Try:

  1. Remove directory
  2. Clone again, cd into directory
  3. npm install
  4. node_modules/.bin/electron-rebuild -f -w better-sqlite3
  5. npm start

from opensc2k.

neoneye avatar neoneye commented on April 28, 2024

You missed a step between npm install and npm start

I followed all the steps as described, including step 4.

I didn't copy/paste the sequence of rm, git clone, cd, since these steps are kind of trivial.

from opensc2k.

cursorial avatar cursorial commented on April 28, 2024

from opensc2k.

neoneye avatar neoneye commented on April 28, 2024
abcdef:docker_poc neoneye$ cat /Users/neoneye/.npm/_logs/2018-02-10T22_13_41_909Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/neoneye/git/OpenSC2K/node_modules/.bin:/Users/neoneye/.rvm/gems/ruby-2.3.0/bin:/Users/neoneye/.rvm/gems/ruby-2.3.0@global/bin:/Users/neoneye/.rvm/rubies/ruby-2.3.0/bin:/usr/local/opt/libxml2/bin:/usr/local/heroku/bin:/usr/local/apache-maven/apache-maven-3.2.3/bin:/Users/neoneye/bin:/usr/local/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/opt/X11/bin:/usr/local/apache-derby/db-derby-10.11.1.1-bin/bin:/Users/neoneye/.rvm/bin
9 verbose lifecycle [email protected]~start: CWD: /Users/neoneye/git/OpenSC2K
10 silly lifecycle [email protected]~start: Args: [ '-c', 'electron .' ]
11 silly lifecycle [email protected]~start: Returned: code: 1  signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `electron .`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack     at EventEmitter.emit (events.js:160:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:160:13)
13 verbose stack     at maybeClose (internal/child_process.js:943:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/neoneye/git/OpenSC2K
16 verbose Darwin 17.3.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v9.4.0
19 verbose npm  v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `electron .`
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
abcdef:docker_poc neoneye$

from opensc2k.

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.