Comments (9)
Oh yes, running as root worked properly. Thanks!!!
from build_tools.
Moved this issue to build_tools
repo, since it's compilation issue
Am I right, that you tryed to compile it on ubuntu 14.04
as well? Current variant will not work on 18.04
Also could you specify exact commands, which you run or better provide some Dockerfile to reproduce.
I've compiled product according to default Dockerfile yesterday and everything was fine
from build_tools.
Yes, I did this on Ubuntu 14.04 as well.
For the commands, all below was run as root:
git clone https://github.com/ONLYOFFICE/build_tools.git
cd build_tools/tools/linux
python automate.py server
(wait until download of server module in onlyoffice/DocumentServer.git to edit server/Common/sources/constants.js)
Wait for it to start compiling webapps...
Fails with ELIFECYCLE ERROR on phantomjs as seen above. I am using npm 10, as this is what is default installed. Could I have the wrong version of npm or gcc?
Thank you!
from build_tools.
Could you attach your build log
Or compare with mine, which finished without any errors?
from build_tools.
Got the same issue under Ubuntu 14.04, 16.04 or 18.04!!!!!
Here´s the output from the shell:
> [email protected] install /home/hnk/web-apps/build/node_modules/phantomjs-prebuilt
> node install.js
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
[=========================---------------] 63%
Received 22866K total.
Extracting tar contents (via spawned process)
Removing /home/hnk/web-apps/build/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1605302592645/phantomjs-2.1.1-linux-x86_64 -> /home/hnk/web-apps/build/node _modules/phantomjs-prebuilt/lib/phantom
Phantom installation failed { [Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1605302592645/phantomjs-2.1.1 -linux-x86_64' -> '/home/hnk/web-apps/build/node_modules/phantomjs-prebuilt/lib/ phantom']
errno: -13,
code: 'EACCES',
syscall: 'link',
path:
'/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1605302592645/phantomjs-2.1.1-linux-x86_64',
dest:
'/home/hnk/web-apps/build/node_modules/phantomjs-prebuilt/lib/phantom' } Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64. tar.bz2-extract-1605302592645/phantomjs-2.1.1-linux-x86_64' -> '/home/hnk/web-ap ps/build/node_modules/phantomjs-prebuilt/lib/phantom'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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! /home/hnk/.npm/_logs/2020-11-13T21_23_14_885Z-debug.log
Error (npm): 1
Error (./make.py): 1
**Here´s the content form the debug.log:**
21783 verbose stack Error: [email protected] install: `node install.js`
21783 verbose stack Exit status 1
21783 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
21783 verbose stack at EventEmitter.emit (events.js:198:13)
21783 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
21783 verbose stack at ChildProcess.emit (events.js:198:13)
21783 verbose stack at maybeClose (internal/child_process.js:982:16)
21783 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
21784 verbose pkgid [email protected]
21785 verbose cwd /home/hnk/web-apps/build
21786 verbose Linux 4.15.0-123-generic
21787 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
21788 verbose node v10.23.0
21789 verbose npm v6.14.8
21790 error code ELIFECYCLE
21791 error errno 1
21792 error [email protected] install: `node install.js`
21792 error Exit status 1
21793 error Failed at the [email protected] install script.
21793 error This is probably not a problem with npm. There is likely additional logging output above.
21794 verbose exit [ 1, true ]
from build_tools.
I think you got another error, try to run from sudo
, seems phantomjs cannot be installed because of permission issues
Phantom installation failed { [Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1605302592645/phantomjs-2.1.1 -linux-x86_64' -> '/home/hnk/web-apps/build/node_modules/phantomjs-prebuilt/lib/ phantom']
from build_tools.
Unfortunately not, i ran the script from sudo (sudo automate.py server).
from build_tools.
@hnk73 I'm not 100% sure, but you can try to change this code to include sudo
https://github.com/ONLYOFFICE/build_tools/blob/master/scripts/build_js.py#L70
If this not help - try to create temp VM or docker and run build script from root (I know this is not very safe, so advice to use docker or VM)
I've only checked this code with root
user inside container
from build_tools.
Closing this issue since seems running with root worked
from build_tools.
Related Issues (20)
- How does the wasm file compile, I can't find the relevant compilation process HOT 5
- [build fail] RPC failed transiently HOT 4
- what is "Transport unknow" ? HOT 4
- Ubuntu16.04 Compile completed,the welcome page didn't show up
- ERROR: The OpenGL functionality tests failed! HOT 2
- How do I build the specified version? HOT 6
- Using build_ Tools are built and executed locally/ Automate.py encountered an exception. Please help me solve it, thank you HOT 2
- SVG-icon file contents erased by 'svnmin' task while building DocumentServer on Linux OS HOT 3
- compile error fatal: Couldn't find remote ref remotes/branch-heads/8.9 HOT 1
- Error: Invalid protocol HOT 1
- Build Failure: Missing runConfigureICU Script on Ubuntu 16.04 HOT 1
- build desktop module in window 11 HOT 2
- onlyoffice local build HOT 1
- Docker build failed and stopped at grunt-google-closure-compiler HOT 1
- Failed to build server submodule HOT 1
- How do you compile individual modules separately
- depot_tools executes the . /cipd script and cannot find the cipd_client_version.digests file. HOT 7
- Using build_ Tools are built and executed locally/ Automate.py encountered an exception. Please help me solve it, thank you HOT 2
- build faild in Windows10 HOT 1
- cannot build : java.io.IOException: No space left on device HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build_tools.