Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-build releases #116

Closed
matrixik opened this issue Oct 13, 2014 · 5 comments
Closed

Pre-build releases #116

matrixik opened this issue Oct 13, 2014 · 5 comments

Comments

@matrixik
Copy link

Hello,

Are there anywhere pre-build releases of Ethercalc?
The one that I can simply download and run if node is present.

I trying to install it with npm but I have problems and Ethercalc don't want to create new page.

When installing:

sudo npm install ethercalc                                                              
npm WARN cannot run in wd ethercalc@0.20140902.0 node node_modules/LiveScript/bin/lsc -c package.json.ls || lsc -c package.json.ls || echo (wd=ethercalc)                                                                                             

> webworker-threads@0.5.3 install /home/ether/node_modules/ethercalc/node_modules/webworker-threads                        
> node-gyp rebuild                                                                                                         

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.29"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/ether/node_modules/ethercalc/node_modules/webworker-threads/.node-gyp"                                                                                                         
gyp WARN install got an error, rolling back install                                                                        
gyp WARN install got an error, rolling back install                                                                        
gyp ERR! configure error                                                                                                   
gyp ERR! stack Error: invalid tar file                                                                                     
gyp ERR! stack     at Extract.Parse._startEntry (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:145:13)           
gyp ERR! stack     at Extract.Parse._process (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:127:12)              
gyp ERR! stack     at BlockStream.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:47:8)               
gyp ERR! stack     at BlockStream.emit (events.js:95:17)                                                                   
gyp ERR! stack     at BlockStream._emitChunk (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:145:10)  
gyp ERR! stack     at BlockStream.write (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:45:10)        
gyp ERR! stack     at Extract.Parse.write (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:81:23)                  
gyp ERR! stack     at write (_stream_readable.js:585:24)
gyp ERR! stack     at flow (_stream_readable.js:594:7)
gyp ERR! stack     at Gunzip.pipeOnReadable (_stream_readable.js:626:5)
gyp ERR! System Linux 3.2.0-4-amd64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ether/node_modules/ethercalc/node_modules/webworker-threads
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

> ws@0.4.31 install /home/ether/node_modules/ethercalc/node_modules/zappajs/node_modules/socket.io/node_modules/engine.io/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

npm WARN optional dep failed, continuing webworker-threads@0.5.3

> ws@0.4.31 install /home/ether/node_modules/ethercalc/node_modules/zappajs/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

ethercalc@0.20140902.0 node_modules/ethercalc
├── uuid-pure@1.0.10
├── cors@2.4.2
├── redis@0.8.2
├── optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.10)
├── LiveScript@1.2.0 (prelude-ls@1.0.3)
└── zappajs@0.5.0 (methods@1.1.0, node-uuid@1.4.1, coffee-css@0.0.5, uglify-js@2.4.15, express@3.16.9, coffeecup@0.3.21, socket.io@1.0.6)

And when I try to create new page it's going to this page but site is trying to reload itself all the time and when I open error console:

[11:47:30.162] TypeError: SocialCalc.Sheet is undefined @ http://ethercalc.int:8000/player/broadcast.js:49
[11:47:30.785] TypeError: SocialCalc.Sheet is undefined @ http://ethercalc.int:8000/player/broadcast.js:49
[11:47:31.239] TypeError: SocialCalc.Sheet is undefined @ http://ethercalc.int:8000/player/broadcast.js:49
...

Best regards

@audreyt
Copy link
Owner

audreyt commented Oct 13, 2014

Hi, what is your OS, its version and is it 32- or 64-bit? Maybe we can join the list of https://github.com/mapbox/node-pre-gyp/wiki/Modules-using-node-pre-gyp and ship pre-built binaries.

@matrixik
Copy link
Author

Linux <name> 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3 x86_64 GNU/Linux
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"

@audreyt
Copy link
Owner

audreyt commented Oct 13, 2014

Would you like to try:

sudo npm i ethercalc@0.20141012.0

and see if it solves the problem? It should function correctly even when webworker-threads is not installed.

0.20140902.0 is ancient, I don't know why it's still around...

@audreyt audreyt closed this as completed Oct 13, 2014
@audreyt
Copy link
Owner

audreyt commented Oct 13, 2014

On a freshly set up wheezy VM, I verified the installation steps:

sudo apt-get update
sudo apt-get install -y curl sudo
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs build-essential
# nodejs (0.10.32-1nodesource1~wheezy1)
sudo npm i -g ethercalc

And everything installed fine:

ethercalc@0.20141012.0 /usr/lib/node_modules/ethercalc
├── uuid-pure@1.0.10
├── cors@2.4.2
├── redis@0.8.2
├── optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.10)
├── LiveScript@1.3.0 (prelude-ls@1.1.1, optionator@0.4.0)
├── webworker-threads@0.5.3 (nan@1.2.0)
└── zappajs@0.5.0 (methods@1.1.0, node-uuid@1.4.1, coffee-css@0.0.5, coffeecup@0.3.21, uglify-js@2.4.15, expr

Would you like to try a similar setup?

@matrixik
Copy link
Author

Yessssss, it's working now.

As a root:

npm i ethercalc@0.20141012.0

> webworker-threads@0.5.3 install /home/ether/node_modules/ethercalc/node_modules/webworker-threads
> node-gyp rebuild                                                                                 

/
gyp WARN install got an error, rolling back install
gyp ERR! configure error                           
gyp ERR! stack Error: invalid tar file             
gyp ERR! stack     at Extract.Parse._startEntry (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:145:13)
gyp ERR! stack     at Extract.Parse._process (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:127:12)   
gyp ERR! stack     at BlockStream.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:47:8)    
gyp ERR! stack     at BlockStream.emit (events.js:95:17)                                                        
gyp ERR! stack     at BlockStream._emitChunk (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:145:10)
gyp ERR! stack     at BlockStream.write (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:45:10)      
gyp ERR! stack     at Extract.Parse.write (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:81:23)                
gyp ERR! stack     at write (_stream_readable.js:601:24)                                                                 
gyp ERR! stack     at flow (_stream_readable.js:610:7)                                                                   
gyp ERR! stack     at Gunzip.pipeOnReadable (_stream_readable.js:642:5)                                                  
gyp ERR! System Linux 3.2.0-4-amd64                                                                                      
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"                      
gyp ERR! cwd /home/ether/node_modules/ethercalc/node_modules/webworker-threads                                           
gyp ERR! node -v v0.10.32                                                                                                
gyp ERR! node-gyp -v v1.0.1                                                                                              
gyp ERR! not ok                                                                                                          
npm WARN optional dep failed, continuing webworker-threads@0.5.3                                                         

> ws@0.4.31 install /home/ether/node_modules/ethercalc/node_modules/zappajs/node_modules/socket.io/node_modules/engine.io/node_modules/ws                                                                                                             
> (node-gyp rebuild 2> builderror.log) || (exit 0)                                                                         


> ws@0.4.31 install /home/ether/node_modules/ethercalc/node_modules/zappajs/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws                                                                        
> (node-gyp rebuild 2> builderror.log) || (exit 0)                                                                         

ethercalc@0.20141012.0 node_modules/ethercalc
├── uuid-pure@1.0.10                         
├── cors@2.4.2                               
├── redis@0.8.2                              
├── optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.10)
├── LiveScript@1.3.0 (prelude-ls@1.1.1, optionator@0.4.0)
└── zappajs@0.5.0 (methods@1.1.0, node-uuid@1.4.1, coffee-css@0.0.5, uglify-js@2.4.15, express@3.16.9, coffeecup@0.3.21, socket.io@1.0.6)                    

(Maybe the problem is this VPS is for internal usage and is hidden behind company firewall, I must install npm by downloading it to my computer and then uploading it to VPS with scp)

Then as a user:

sudo chown ether:ether -R node_modules/

And it's working now (creating new pages and accessing previous one).

When I have some more time I will try to set Ethercalc as a service (like Etherpad). Previously it did not worked for me (always crash after first page access) so now I'm running it in screen.

Thank you for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants