You've done everything right as far as I can see. Weirdly the git thing isn't working, did you git clone from latest?
I'm away from computers for Christmas, so have CC'd the other CE folks just in case someone else has an idea!
Else I'll take a look sometime between Christmas and New year. Thanks again!
Matt :)
Matt,
I tried installing Compiler Explorer on Fedora 27. It looks like the
install works but when node tries to launch I get an error. The files
were downloaded from GitHub this morning.
Any ideas on what went wrong?
I just want a local installation. For this install I just want gcc
(g++) and clang to be used.
They are installed in:
[dhinz@localhost compiler-explorer-master]$ which gcc
/usr/lib64/ccache/gcc
[dhinz@localhost compiler-explorer-master]$ which clang
/usr/lib64/ccache/clang
Do I need to modify the etc/config/compiler-
explorer.defaults.properties or make a new compiler-
explorer.local.properties. ?
Here is the log file from trying to do the install:
--------------------------------------
[dhinz@localhost compiler-explorer-master]$ make
which: no ghc in
(/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/h
ome/dhinz/.local/bin:/home/dhinz/bin)
which: no cargo in
(/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/h
ome/dhinz/.local/bin:/home/dhinz/bin)
fatal: Not a git repository (or any of the parent directories): .git
Haskell language support disabled
D language support disabled
Rust language support disabled
/usr/bin/npm install
> @newrelic/native-...@2.1.2 install /home/dhinz/Downloads/compiler
-explorer-master/node_modules/@newrelic/native-metrics
> node ./lib/pre-build.js --no-download install native_metrics
> /usr/bin/node /usr/lib/node_modules/npm/node_modules/node-
gyp/bin/node-gyp.js clean configure
> /usr/bin/node /usr/lib/node_modules/npm/node_modules/node-
gyp/bin/node-gyp.js build -j 2 native_metrics
make[1]: Entering directory '/home/dhinz/Downloads/compiler-explorer-ma
ster/node_modules/@newrelic/native-metrics/build'
CXX(target) Release/obj.target/native_metrics/src/native_metrics.o
CXX(target) Release/obj.target/native_metrics/src/GCBinder.o
CXX(target) Release/obj.target/native_metrics/src/LoopChecker.o
CXX(target) Release/obj.target/native_metrics/src/RUsageMeter.o
SOLINK_MODULE(target) Release/obj.target/native_metrics.node
COPY Release/native_metrics.node
make[1]: Leaving directory '/home/dhinz/Downloads/compiler-explorer-mas
ter/node_modules/@newrelic/native-metrics/build'
install successful: _newrelic_native_metrics-2_1_2-native_metrics-57-
linux-x64
added 357 packages in 14.815s
make -C c-preload
make[1]: Entering directory '/home/dhinz/Downloads/compiler-explorer-
master/c-preload'
cc -std=c99 -shared -O1 -fPIC preload.c -o libpreload.so -ldl
make[1]: Leaving directory '/home/dhinz/Downloads/compiler-explorer-
master/c-preload'
if ! test -f ".bower-updated"; then rm -rf static/ext; fi
/usr/bin/node ./node_modules/bower/bin/bower install
bower cached https://github.com/peterolson/BigInteger.js.git#1.6
.26
bower validate 1.6.26 against https://github.com/peterolson/BigInt
eger.js.git#^1.6.22
bower cached https://github.com/hoxton-one/golden-layout.git#1.5
.9
bower validate 1.5.9 against https://github.com/hoxton-one/golden-
layout.git#^1.5.9
bower cached https://github.com/jquery/jquery-dist.git#3.2.1
bower validate 3.2.1 against https://github.com/jquery/jquery-dist
.git#^3.1.1
bower cached https://github.com/twbs/bootstrap.git#3.3.7
bower validate 3.3.7 against https://github.com/twbs/bootstrap.git
#^3.3.7
bower cached https://github.com/jrburke/requirejs-bower.git#2.3.
5
bower validate 2.3.5 against https://github.com/jrburke/requirejs-
bower.git#^2.3.2
bower cached https://github.com/Olical/EventEmitter.git#5.2.4
bower validate 5.2.4 against https://github.com/Olical/EventEmitte
r.git#^5.1.0
bower cached https://github.com/jashkenas/underscore.git#1.8.3
bower validate 1.8.3 against https://github.com/jashkenas/undersco
re.git#^1.8.3
bower cached https://github.com/pieroxy/lz-string.git#1.4.4
bower validate 1.4.4 against https://github.com/pieroxy/lz-string.
git#^1.4.4
bower cached https://github.com/zenorocha/clipboard.js.git#1.7.1
bower validate 1.7.1 against https://github.com/zenorocha/clipboar
d.js.git#^1.5.12
bower cached https://github.com/getsentry/raven-js.git#3.21.0
bower validate 3.21.0 against https://github.com/getsentry/raven-j
s.git#^3.10.0
bower cached https://github.com/selectize/selectize.js.git#0.12.
4
bower validate 0.12.4 against https://github.com/selectize/selecti
ze.js.git#^0.12.2
bower cached https://github.com/isaacs/node-lru-cache.git#2.7.3
bower validate 2.7.3 against https://github.com/isaacs/node-lru-ca
che.git#2.7.3
bower cached https://github.com/eligrey/FileSaver.js.git#1.3.3
bower validate 1.3.3 against https://github.com/eligrey/FileSaver.
js.git#^1.3.3
bower cached https://github.com/seiyria/bootstrap-slider.git#9.7
.3
bower validate 9.7.3 against https://github.com/seiyria/bootstrap-
slider.git#9.7.x
bower cached https://github.com/almende/vis.git#4.20.1
bower validate 4.20.1 against https://github.com/almende/vis.git#4
.20.1
bower cached https://github.com/components/es6-promise.git#4.1.1
bower validate 4.1.1 against https://github.com/components/es6-pro
mise.git#^4.0.5
bower cached https://github.com/jquery/jquery-dist.git#3.2.1
bower validate 3.2.1 against https://github.com/jquery/jquery-dist
.git#*
bower cached https://github.com/brianreavis/sifter.js.git#0.5.3
bower validate 0.5.3 against https://github.com/brianreavis/sifter
.js.git#0.5.x
bower cached https://github.com/brianreavis/microplugin.js.git#0
.0.3
bower validate 0.0.3 against https://github.com/brianreavis/microp
lugin.js.git#0.0.x
bower install big-integer#1.6.26
bower install golden-layout#1.5.9
bower install jquery#3.2.1
bower install requirejs#2.3.5
bower install eventEmitter#5.2.4
bower install clipboard#1.7.1
bower install lz-string#1.4.4
bower install underscore#1.8.3
bower install bootstrap#3.3.7
bower install raven-js#3.21.0
bower install selectize#0.12.4
bower install lru-cache#2.7.3
bower install file-saver#1.3.3
bower install seiyria-bootstrap-slider#9.7.3
bower install vis#4.20.1
bower install es6-promise#4.1.1
bower install microplugin#0.0.3
bower install sifter#0.5.3
big-integer#1.6.26 static/ext/big-integer
golden-layout#1.5.9 static/ext/golden-layout
└── jquery#3.2.1
jquery#3.2.1 static/ext/jquery
requirejs#2.3.5 static/ext/requirejs
eventEmitter#5.2.4 static/ext/eventEmitter
clipboard#1.7.1 static/ext/clipboard
lz-string#1.4.4 static/ext/lz-string
underscore#1.8.3 static/ext/underscore
bootstrap#3.3.7 static/ext/bootstrap
└── jquery#3.2.1
raven-js#3.21.0 static/ext/raven-js
selectize#0.12.4 static/ext/selectize
├── jquery#3.2.1
├── microplugin#0.0.3
└── sifter#0.5.3
lru-cache#2.7.3 static/ext/lru-cache
file-saver#1.3.3 static/ext/file-saver
seiyria-bootstrap-slider#9.7.3 static/ext/seiyria-bootstrap-slider
vis#4.20.1 static/ext/vis
es6-promise#4.1.1 static/ext/es6-promise
microplugin#0.0.3 static/ext/microplugin
sifter#0.5.3 static/ext/sifter
# Workaround for lack of versioned monaco-editor in bower
rm -rf static/ext/monaco-editor
cp -r node_modules/monaco-editor static/ext/
/usr/bin/node ./node_modules/.bin/supervisor -w app.js,lib,etc/config
-e 'js|node|properties' --exec /usr/bin/node -- ./app.js --language
C++
Running node-supervisor with
program './app.js --language C++'
--watch 'app.js,lib,etc/config'
--extensions 'js|node|properties'
--exec '/usr/bin/node'
Starting child process with '/usr/bin/node ./app.js --language C++'
Watching directory '/home/dhinz/Downloads/compiler-explorer-
master/app.js' for changes.
Press rs for restarting the process.
Watching directory '/home/dhinz/Downloads/compiler-explorer-master/lib'
for changes.
Press rs for restarting the process.
Watching directory '/home/dhinz/Downloads/compiler-explorer-
master/etc/config' for changes.
Press rs for restarting the process.
fatal: Not a git repository (or any of the parent directories): .git
child_process.js:644
throw err;
^
Error: Command failed: git rev-parse HEAD
fatal: Not a git repository (or any of the parent directories): .git
at checkExecSyncError (child_process.js:601:13)
at Object.execSync (child_process.js:641:13)
at Object.<anonymous> (/home/dhinz/Downloads/compiler-explorer-
master/app.js:97:36)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
Program /usr/bin/node ./app.js --language C++ exited with code 1
Starting child process with '/usr/bin/node ./app.js --language C++'
fatal: Not a git repository (or any of the parent directories): .git
child_process.js:644
throw err;
^
Ah! I see. I bet the code has inadvertently expected to be got cloned. Although when running on the live site it isn't a git clone. The error may be a red herring in this case. Sorry, again I'm on my smart phone and not in a spot to debug all that easily, my apologies!
Have a good day!