Coder Social home page Coder Social logo

cloxp-install's Introduction

cloxp-install

cloxp -- a Clojure IDE for explorative and interactive development.

Run the live web version without install: cloxp.lively-next.org

Or use this install script for setting cloxp up locally.

Installation

Mac OS and Linux

Prerequisites are: git, java, leiningen, node.js version >=4.

  1. Download the latest release: https://github.com/cloxp/cloxp-install/releases/
  2. Open a terminal.
  3. Uncompress: $ unzip cloxp-0.2.0.zip; cd cloxp-0.2.1
  4. Install: $ ./install.sh
  5. Start: $ ./start.sh

Cloxp should now be running at http://localhost:9001/cloxp.html.

To stop the server press Ctrl-c.

Windows

Prerequisites are: git, java, leiningen.

  1. Download the latest release: https://github.com/cloxp/cloxp-install/releases/
  2. Uncompress the zip file, e.g. cloxp-pre-0.0.8.zip
  3. Open a command line on the uncompressed folder.
  4. Install: $ install.cmd
  5. Start: $ start.cmd

Docker

A docker setup is available: cloxp/cloxp-docker. Prerequisites: docker, a docker supported VM like virtualbox. It should work on all platforms that support docker.

Install notes

On Arch Linux you might have to set the python path for installing when your default python isn't of version 2: $ PYTHON=python2.7 ./install.sh.

LICENSE

All code is published under the MIT license.

cloxp-install's People

Contributors

rheimbuch avatar rksm avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloxp-install's Issues

start.sh initiates infinite error loop

I'm not able to get cloxp running on either OS X or Docker.

I can reproduce this bug at will, consistently on both OS X 10.10.4 and the cloxp docker container by follwing the Cloxp installation instructions.

On final step: $ ./start.sh results in the following, repeating pattern of messages, which include multiple errors. By repeating, I mean that the Forever script keeps restarting the process, requiring ^C to interrupt.

I tried to extend the --minUptime setting to 100s by editing the option directly on line 267 of cli.js but this failed to correct the issue, which I'm still unable to ascertain the cause of. My best guess so far is that has something to do with the error:[2015-08-07 13:07:47.803] [ERROR] console - composeAsync: 'Error: Trying to get unknown option lively.Config.userAuthEnabled\n but would appreciate your input. Thanks! (Also, thank you for Cloxp. Looks really cool!)

$ ./start.sh /Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel /Volumes/PRODATA/DATA/www/edu/clojure/cloxp warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms Checking if PartsBin exists... ...yes [2015-08-07 13:07:47.713] [INFO] console - Lively server started with cross origin resource sharing (CORS) enabled. Fri, 07 Aug 2015 17:07:47 GMT connect deprecated multipart: use parser (multiparty, busboy, formidable) npm module instead at node_modules/life_star/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:56:20 Fri, 07 Aug 2015 17:07:47 GMT connect deprecated limit: Restrict request size at location of read at node_modules/life_star/node_modules/express/node_modules/connect/lib/middleware/multipart.js:86:15 [2015-08-07 13:07:47.803] [ERROR] console - composeAsync: 'Error: Trying to get unknown option lively.Config.userAuthEnabled\n at Object.Global.Config.get (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/core/lively/defaultconfig.js:205:54)\n at setupAuthHandler (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/life_star/life_star.js:266:42)\n at /Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:430:16\n at next (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:426:25)\n at setupSSLCertHandler (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/life_star/life_star.js:259:5)\n at /Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:430:16\n at next (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:426:25)\n at setupHTTPLogger (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/life_star/life_star.js:249:5)\n at /Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:430:16\n at next (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:426:25)' [2015-08-07 13:07:47.805] [ERROR] console - Error starting life_star: Error: Trying to get unknown option lively.Config.userAuthEnabled [2015-08-07 13:07:47.805] [INFO] console - Server with pid 19853 is now running at http://localhost:9001 [2015-08-07 13:07:47.805] [INFO] console - Serving files from /Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel [2015-08-07 13:07:47.814] [INFO] console - Lively server starting... error: Forever detected script exited with code: 0 error: Script restart attempt #1 Checking if PartsBin exists... ...yes [2015-08-07 13:07:48.975] [INFO] console - Lively server started with cross origin resource sharing (CORS) enabled. Fri, 07 Aug 2015 17:07:49 GMT connect deprecated multipart: use parser (multiparty, busboy, formidable) npm module instead at node_modules/life_star/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:56:20 Fri, 07 Aug 2015 17:07:49 GMT connect deprecated limit: Restrict request size at location of read at node_modules/life_star/node_modules/express/node_modules/connect/lib/middleware/multipart.js:86:15 [2015-08-07 13:07:49.059] [ERROR] console - composeAsync: 'Error: Trying to get unknown option lively.Config.userAuthEnabled\n at Object.Global.Config.get (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/core/lively/defaultconfig.js:205:54)\n at setupAuthHandler (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/life_star/life_star.js:266:42)\n at /Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:430:16\n at next (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:426:25)\n at setupSSLCertHandler (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/life_star/life_star.js:259:5)\n at /Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:430:16\n at next (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:426:25)\n at setupHTTPLogger (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/life_star/life_star.js:249:5)\n at /Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:430:16\n at next (/Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel/node_modules/lively.lang/lib/function.js:426:25)' [2015-08-07 13:07:49.060] [ERROR] console - Error starting life_star: Error: Trying to get unknown option lively.Config.userAuthEnabled [2015-08-07 13:07:49.060] [INFO] console - Server with pid 19858 is now running at http://localhost:9001 [2015-08-07 13:07:49.060] [INFO] console - Serving files from /Volumes/PRODATA/DATA/www/edu/clojure/cloxp/LivelyKernel [2015-08-07 13:07:49.062] [INFO] console - Lively server starting... error: Forever detected script exited with code: 0 error: Script restart attempt #2 Checking if PartsBin exists... ...yes

docker on mac : start.sh goes in infinite loop insatlling sqllite .

OS : mac osx

$ docker build --tag="cloxp" .
$ docker run -p 9001:9001 -t cloxp

Similar error when tried to install directly on Mac and Ubuntu without docker

///////
Problem installing npm package sqlite3:

[email protected] install /home/cloxp/LivelyKernel/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

make: Entering directory '/home/cloxp/LivelyKernel/node_modules/sqlite3/build'
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3081101/sqlite3.c
TOUCH Release/obj.target/deps/action_before_build.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3081101/sqlite3.o
AR(target) Release/obj.target/deps/sqlite3.a
COPY Release/sqlite3.a
CXX(target) Release/obj.target/node_sqlite3/src/database.o
node_sqlite3.target.mk:106: recipe for target 'Release/obj.target/node_sqlite3/src/database.o' failed
make: Leaving directory '/home/cloxp/LivelyKernel/node_modules/sqlite3/build'
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/cloxp/LivelyKernel/node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/cloxp/LivelyKernel/node_modules/sqlite3/lib/binding/node-v46-linux-x64' (1)

npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm WARN package.json [email protected] No license field.
npm info package.json [email protected] No README data
npm info package.json [email protected] No repository field.
npm info package.json [email protected] No license field.
npm info package.json [email protected] No repository field.
npm info package.json [email protected] Invalid filename in 'files' list:
npm info package.json [email protected] No license field.
npm info package.json [email protected] No repository field.
npm info package.json [email protected] No license field.
npm info package.json [email protected] No license field.
npm info package.json [email protected] No license field.
npm info package.json [email protected] No license field.
npm info package.json [email protected] No license field.
npm info attempt registry request try #1 at 1:39:36 AM
npm http request GET https://registry.npmjs.org/sqlite3
npm http 304 https://registry.npmjs.org/sqlite3
npm info install [email protected] into /home/cloxp/LivelyKernel
npm info installOne [email protected]
npm info preinstall [email protected]
npm info package.json [email protected] license should be a valid SPDX license expression
npm info attempt registry request try #1 at 1:39:37 AM
npm http request GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
npm info install [email protected] into /home/cloxp/LivelyKernel/node_modules/sqlite3
npm info installOne [email protected]
npm info preinstall [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/nan
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3
npm info linkStuff [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/node-pre-gyp
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/nopt
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rimraf
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info install [email protected]
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | linux | x64
node-pre-gyp info check checked for "/home/cloxp/LivelyKernel/node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.10/node-v46-linux-x64.tar.gz
node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.10/node-v46-linux-x64.tar.gz
node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.10/node-v46-linux-x64.tar.gz (falling back to source compile with node-gyp)
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn python2
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/cloxp/LivelyKernel/node_modules/sqlite3/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/cloxp/.node-gyp/4.0.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/cloxp/.node-gyp/4.0.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/cloxp/LivelyKernel/node_modules/sqlite3',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
In file included from ../src/database.h:11:0,
from ../src/database.cc:5:
../node_modules/nan/nan.h:261:25: error: redefinition of 'template v8::Local NanEnsureLocal(v8::Local)'
NAN_INLINE v8::Local NanEnsureLocal(v8::Local val) {
^
../node_modules/nan/nan.h:256:25: note: 'template v8::Local NanEnsureLocal(v8::Handle)' previously declared here
NAN_INLINE v8::Local NanEnsureLocal(v8::Handle val) {
^
../node_modules/nan/nan.h:661:13: error: 'node::smalloc' has not been declared
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h:661:35: error: expected ',' or '...' before 'callback'
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(char
, size_t, int)':
../node_modules/nan/nan.h:665:50: error: 'callback' was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h:665:60: error: 'hint' was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(const char
, uint32_t)':
../node_modules/nan/nan.h:672:67: error: call of overloaded 'New(v8::Isolate
, const char&, uint32_t&)' is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../node_modules/nan/nan.h:672:67: note: candidates are:
In file included from ../node_modules/nan/nan.h:25:0,
from ../src/database.h:11,
from ../src/database.cc:5:
/home/cloxp/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
^
/home/cloxp/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from 'uint32_t {aka unsigned int}' to 'node::encoding'
/home/cloxp/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, char_, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/home/cloxp/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from 'const char_' to 'char_'
In file included from ../src/database.h:11:0,
from ../src/database.cc:5:
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(uint32_t)':
../node_modules/nan/nan.h:676:61: error: could not convert 'node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))' from 'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object'
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanBufferUse(char_, uint32_t)':
../node_modules/nan/nan.h:683:12: error: 'Use' is not a member of 'node::Buffer'
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
../src/database.cc: In static member function 'static void node_sqlite3::Database::Work_BeginOpen(node_sqlite3::Database::Baton_)':
../src/database.cc:145:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/database.cc: In static member function 'static void node_sqlite3::Database::Work_BeginClose(node_sqlite3::Database::Baton_)':
../src/database.cc:230:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/database.cc: In static member function 'static void node_sqlite3::Database::Work_BeginExec(node_sqlite3::Database::Baton_)':
../src/database.cc:509:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/database.cc: In static member function 'static void node_sqlite3::Database::Work_BeginLoadExtension(node_sqlite3::Database::Baton_)':
../src/database.cc:610:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
make: *_* [Release/obj.target/node_sqlite3/src/database.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.0.9-boot2docker
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/cloxp/LivelyKernel/node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/home/cloxp/LivelyKernel/node_modules/sqlite3/lib/binding/node-v46-linux-x64"
gyp ERR! cwd /home/cloxp/LivelyKernel/node_modules/sqlite3
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/cloxp/LivelyKernel/node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/cloxp/LivelyKernel/node_modules/sqlite3/lib/binding/node-v46-linux-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:817:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Linux 4.0.9-boot2docker
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/cloxp/LivelyKernel/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/cloxp/LivelyKernel/node_modules/sqlite3
node-pre-gyp ERR! node -v v4.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.9
node-pre-gyp ERR! not ok
npm info [email protected] Failed to exec install script
npm ERR! Linux 4.0.9-boot2docker
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "sqlite3"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info postuninstall [email protected]

npm ERR! Please include the following file with any support request:
npm ERR! /home/cloxp/LivelyKernel/npm-debug.log

Finished installing lively server dependencies.
Checking if PartsBin exists...
...yes
module.js:338
throw err;
^

Error: Cannot find module 'sqlite3'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/home/cloxp/LivelyKernel/node_modules/life_star/node_modules/lively-davfs/sqlite-storage.js:9:15)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
error: Forever detected script exited with code: 1
error: Script restart attempt #6
Not all required npm packages are installed! Installing packages sqlite3
Installing package sqlite3...

Windows: cloxp will not start

Firstly the install was not working then the start.cmd did no work, but if I run the commands individually I get the following:

PS C:\Users\MartinRoberts\cloxp-0.2.0\LivelyKernel> node bin\lk-server.js --lk-dir C:\Users\MartinRoberts\cloxp-0.2.0\LivelyKernel --db-config "{"enableRewriting":false}"
Checking if PartsBin exists...
...yes
C:\Users\MartinRoberts\cloxp-0.2.0\LivelyKernel\node_modules\lively-loader\index.js:155
livelyLang.deprecatedLivelyPatches();
^

TypeError: livelyLang.deprecatedLivelyPatches is not a function
at start (C:\Users\MartinRoberts\cloxp-0.2.0\LivelyKernel\node_modules\lively-loader\index.js:155:14)
at Object.withLivelyNamespaceDo (C:\Users\MartinRoberts\cloxp-0.2.0\LivelyKernel\node_modules\lively-loader\index.js:171:14)
at loadNodejsLively (C:\Users\MartinRoberts\cloxp-0.2.0\LivelyKernel\bin\lk-server.js:205:30)
at fn (C:\Users\MartinRoberts\cloxp-0.2.0\LivelyKernel\node_modules\async\lib\async.js:638:34)
at Immediate. (C:\Users\MartinRoberts\cloxp-0.2.0\LivelyKernel\node_modules\async\lib\async.js:554:34)
at runCallback (timers.js:637:20)
at tryOnImmediate (timers.js:610:5)
at processImmediate [as _immediateCallback] (timers.js:582:5)

Windows install fails.

A transcript of the session. Part of the PATH has been elided for brevity.
The empty error message was not helpful. A second install attempt chokes on a non-empty directory. Removing it doesn't work either for a third attempt.

C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>install.cmd

C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>set PATH=C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8;C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8\gnuwin32\bin;C:\GTK\bin;C:\ProgramData\Oracle\Java\javapath;[...]

C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>java -Xmx500m -jar cloxp-installer.jar -m rksm.cloxp-installer.main "pre-0.0.8"
installing cloxp pre-0.0.8
1. Checking dependencies...
2. Installing LivelyKernel...
2.1 Installing windows specific files...
3. Installing npm / modules...
3.1 Installing nodejs + npm...
(error installing cloxp:
 )

C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>type install.log
cloxp installer for pre-0.0.8 started Sun Mar 06 21:02:08 MST 2016error installing cloxp:


C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>install.cmd

C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>set PATH=C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8;C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8\gnuwin32\bin;C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8;C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8\gnuwin32\bin;C:\GTK\bin;C:\ProgramData\Oracle\Java\javapath;[...]

C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>java -Xmx500m -jar cloxp-installer.jar -m rksm.cloxp-installer.main "pre-0.0.8"
installing cloxp pre-0.0.8
1. Checking dependencies...
2. Installing LivelyKernel...
(error installing cloxp:
 Failure while  cloning https://github.com/cloxp/LivelyKernel :  fatal: destination path 'LivelyKernel' already exists and is not an empty directory.
)
2.1 Installing windows specific files...

C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>type install.log
cloxp installer for pre-0.0.8 started Sun Mar 06 21:10:05 MST 2016error installing cloxp:
Failure while cloning https://github.com/cloxp/LivelyKernel: fatal: destination path 'LivelyKernel' already exists and is not an empty directory.


C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>rmdir /S LivelyKernel
LivelyKernel, Are you sure (Y/N)? y

C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>install.cmd

C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>set PATH=C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8;C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8\gnuwin32\bin;C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8;C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8\gnuwin32\bin;C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8;C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8\gnuwin32\bin;C:\GTK\bin;C:\ProgramData\Oracle\Java\javapath;[...]

C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>java -Xmx500m -jar cloxp-installer.jar -m rksm.cloxp-installer.main "pre-0.0.8"
installing cloxp pre-0.0.8
1. Checking dependencies...
2. Installing LivelyKernel...
2.1 Installing windows specific files...
3. Installing npm / modules...
3.1 Installing nodejs + npm...
(error installing cloxp:
 )

C:\Users\ME\Code\Clojure\cloxp-pre-0.0.8>type install.log
cloxp installer for pre-0.0.8 started Sun Mar 06 21:18:02 MST 2016error installing cloxp:

Install error on macos

Thought I'd post it here just in case anyone else is trying

I think what is happening here is the JavaScript ecosystem is churning which means cloxp would need constant development to stay up to date

cloxp installer for 0.2.1 started Thu Jan 28 18:31:02 GMT 2021
[email protected]: ๐Ÿ™Œ  Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: connect 2.x series is deprecated
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please upgrade to 2.2.19 or higher
npm WARN deprecated [email protected]: Fixed a critical issue with BSON serialization documented in CVE-2019-2391, see https://bit.ly/2KcpXdo for more details
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm ERR! code 7
npm ERR! path /Users/adriansmith/Downloads/cloxp-0.2.1/LivelyKernel/node_modules/lively-davfs/node_modules/sqlite3
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using [email protected]
npm ERR! node-pre-gyp info using [email protected] | darwin | x64
npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download 
npm ERR! node-pre-gyp info check checked for "/Users/adriansmith/Downloads/cloxp-0.2.1/LivelyKernel/node_modules/lively-davfs/node_modules/sqlite3/lib/binding/node-v88-darwin-x64/node_sqlite3.node" (not found)
npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v88-darwin-x64.tar.gz
npm ERR! node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v88-darwin-x64.tar.gz
npm ERR! node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v88-darwin-x64.tar.gz 
npm ERR! node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v88 ABI, unknown) (falling back to source compile with node-gyp) 
npm ERR! node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v88-darwin-x64.tar.gz 
npm ERR! node-pre-gyp ERR! UNCAUGHT EXCEPTION 
npm ERR! node-pre-gyp ERR! stack TypeError: self._callback.apply is not a function
npm ERR! node-pre-gyp ERR! stack     at Request.self.callback (/Users/adriansmith/Downloads/cloxp-0.2.1/LivelyKernel/node_modules/request/main.js:104:22)
npm ERR! node-pre-gyp ERR! stack     at Request.<anonymous> (/Users/adriansmith/Downloads/cloxp-0.2.1/LivelyKernel/node_modules/request/main.js:458:18)
npm ERR! node-pre-gyp ERR! stack     at Request.emit (node:events:376:20)
npm ERR! node-pre-gyp ERR! stack     at IncomingMessage.<anonymous> (/Users/adriansmith/Downloads/cloxp-0.2.1/LivelyKernel/node_modules/request/main.js:423:16)
npm ERR! node-pre-gyp ERR! stack     at IncomingMessage.emit (node:events:388:22)
npm ERR! node-pre-gyp ERR! stack     at endReadableNT (node:internal/streams/readable:1294:12)
npm ERR! node-pre-gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:80:21)
npm ERR! node-pre-gyp ERR! System Darwin 20.2.0
npm ERR! node-pre-gyp ERR! command "/usr/local/Cellar/node/15.3.0/bin/node" "/Users/adriansmith/Downloads/cloxp-0.2.1/LivelyKernel/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /Users/adriansmith/Downloads/cloxp-0.2.1/LivelyKernel/node_modules/lively-davfs/node_modules/sqlite3
npm ERR! node-pre-gyp ERR! node -v v15.3.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.11.0
npm ERR! node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
npm ERR! node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
npm ERR! node-pre-gyp ERR!     <https://github.com/mapbox/node-pre-gyp/issues>
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | x64
npm ERR! gyp info ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/adriansmith/.npm/_logs/2021-01-28T18_31_39_186Z-debug.log

Install script requires a way to specify python command

On Arch Linux the default Python version is Python 3. Since NPM requires version 2 I have to edit the install script and add --python=python2 to the call to npm install in order to avoid installation errors. Either OS detection, or a way to specify the Python command for NPM would be useful.

Clojars Browser error while attempting to load project list

Reporting here because the Clojars Browser appears to be stored(?) in cloxp-install/PartsBin/Clojure/.

Steps:

  1. fresh checkout of cloxp-install at commit 85b85b8
  2. install cloxp: lein run -m rksm.cloxp-installer.main "pre-0.0.8"
  3. start cloxp: ./start.sh
  4. open: http://localhost:9001/cloxp.html
  5. open Clojars Browser: Alt-x, 'Clojure: browse Clojars'
  6. error pop-up appears: TypeError: projects.map is not a function

I tracked this down to an issue in the loadProjectListViaHTTP script attached to the ClojarsBrowser:

  function getProjectFileName(n) {
    Global.clojure.Runtime.doEval(
      "(.getCanonicalPath (rksm.system-navigator.clojars/ensure-clojure-feed-in-a-file))",
      {requiredNamespaces: ["rksm.system-navigator.clojars"], resultIsJSON: false, passError: true}, n);
  }

The resultsJSON: false option causes getProjectFileName to return a doubly-quoted string:

"\"/Users/ryan.heimbuch/src/cloxp-install/LivelyKernel/2015-05-02_13-clojars-feed.json\""

which later causes a 400 error when attempting to load the file:

"GET /nodejs/CommandLineServer/read-file?mimeType=application/json&fileName=\%22/Users/ryan.heimbuch/src/cloxp-install/LivelyKernel/2015-05-02_13-clojars-feed.json\%22 HTTP/1.1" 400

Setting resultsJSON: true in getProjectFileName fixes this for me:

  function getProjectFileName(n) {
    Global.clojure.Runtime.doEval(
      "(.getCanonicalPath (rksm.system-navigator.clojars/ensure-clojure-feed-in-a-file))",
      {requiredNamespaces: ["rksm.system-navigator.clojars"], resultIsJSON: true, passError: true}, n);
  }

I noticed that evaluating (.getCanonicalPath (rksm.system-navigator.clojars/ensure-clojure-feed-in-a-file)) in a clojure workspace also returns the same doubly-quoted string. I traced the evaluation code as far as the Global.clojure.Runtime.processNreplEvalAnswers function, but I'm not sure what the intended behavior is.

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.