Open kylechallis opened 4 years ago
Hey, sorry for lagging on this!
It's been a while since I've run the server; things are a little out of date. Just pushed a few updates that got things working again for me on my Ubuntu 19.10 machine. The problem above was that install.sh wasn't expecting to be run as root, but there were a few other things I ran into too. Let me know if this helps!
You might also be interested in running the upcoming the 1.2.0 beta version, https://gitlab.com/erosson/swarm-elm . It's a mostly-feature-complete rewrite that I hope will eventually replace what's on www.swarmsim.com .
Thank you!!
After trying to run the install command on a fresh Digital Ocean droplet of 19.10, I was still having one issue. But I seem to have figured it out, and it's working now.
I was getting this error when the script was trying to install compass
:
Building native extensions. This could take a while...
ERROR: Error installing compass:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/ffi-1.12.2/ext/ffi_c
/usr/bin/ruby2.5 -r ./siteconf20200211-12778-pb62ya.rb extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
... (and then much later in the script output) ...
Running "concurrent:test" (concurrent) task
Loading "cdnify.js" tasks...ERROR
>> ReferenceError: primordials is not defined
Running "compass:dist" (compass) task
Warning: not found: compass Use --force to continue.
Aborted due to warnings.
Running apt-get install gcc make
seemed to be the trick to allowing gem install compass
to work properly. From there, I was able to re-run the install.sh script, cd into the swarm/ directory, and npm start
to run the server!
Thank you again! Very excited to play around with this 😸
I realize that the
install.sh
script specifies that it's only been tested on Ubuntu 17.10, so if you don't have time to address this, I understand.I was having issues using
install.sh
and/ornpm install
to get the project up and running on my Ubuntu 16.10 droplet, so I spun up a brand new 18.04 Digital Ocean droplet just to test out Swarm. Without doing anything else, I cloned the repo and executedinstall.sh
. The issues I'm seeing are similar to those I was seeing on the 16.10 droplet.Rather than risk incorrectly dissecting and interpreting any of it, I'll just share the entire output:
P.S. Thank you for your time :) Love the game, I've spent countless hours on it