Installation in ubuntu 16.04.1 or 18.06

Good morning, dear, however, it is not that I will be doing wrong, I follow the guide Step by step, but it falls when I command to install npm install -g genieacs
This is the guide you used https://github.com/genieacs/genieacs/wiki/Installation-Guide-Ubuntu-16.04 and

What’s the error message you’re getting?

@leonardopc1991 try

npm i genieacs --unsafe-perm -g

It is not a solution for me. I get a lot of warning when I install libxlmjs 0.18.8 (mainly similar to this: …/vendor/libxml/xmlschemas.c:24288:3: warning: too many arguments for format [-Wformat-extra-args] value, length, type, facetLink->facet, NULL, NULL, NULL);

If I install the libxmljs without version (in this case the recent libxmljs - 0.19.5 - will be installed) I do not get warnings, but when I install the genieacs, I get a lot of errors (gyp ERR!, node-pre-gyp ERR!, npm ERR!).

If I install nodejs 8.x (=8.16.0) I get a lot of errors during installation of libxmlls 0.18.8, similar to genieacs installation in previous case.

If I install nodejs 8.x (=8.16.0) and libxmljs without version (=0.19.5) I get a lot of errors similar to in previous case.

I have not found so installation method for genieacs so far, which would be good for a clean installation of Ubuntu 16.04.6 .

It seems that the preferred way is now docker, at least on debian/Ubuntu. I got that reply to more or less the same question you guys have, and it makes sense as long as things are the way they are. I’ve successfully installed it this way, but it needs some tweaking. Unfortunately there’s no Centos version yet, but I’m working on that…
Instructions are here:


It does, however, mandate some knowledge of the concept of docker.

@holloo

I will try to help you, there is how i installed genieacs 1.1.3 on ubuntu 18 mini

Dependency ( it’s also for GUI)

apt install git wget nodejs npm mongodb python libxml2-dev build-essential gnupg ruby-bundler ruby-dev libffi-dev libpq-dev libsqlite3-dev tmux -y

another dependency

npm i later
npm i seedrandom
npm i redis
npm i bindings
npm i nan
npm i node-pre-gyp

With this conf i can correctly install libxmljs

npm config set user 0
npm config set unsafe-perm true
npm i libxmljs

and then

npm i genieacs --unsafe-perm -g

Hi Josef,
Thank you for your help. Since then I succeeded in install GenieACS 1.1.3 . I had to install ruby-dev and libxml2-dev as well. Moreover I modified section of dependencies in file package.json: “libxmljs”: “^0.18.8” --> “libxmljs”: “^0.19.5” . After these I did not get any error or warning during installation

For anyone trying to install onto Ubuntu Sever 18.04 I have created a crude script that works for me, I had the script installing Webmin for me too, but have these commented out.

 apt-get update 
apt-get upgrade 
#apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
#cd /usr/src 
#wget http://prdownloads.sourceforge.net/webadmin/webmin_1.910_all.deb
#dpkg --install webmin_1.910_all.deb 
apt-get install redis-server mongodb npm build-essential ruby-bundler ruby-dev libsqlite3-dev 
cd ~ 
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
chmod +x nodesource_setup.sh
./nodesource_setup.sh 
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - 
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list 
apt-get update && apt-get install yarn
apt-get install nodejs 
npm install libxmljs --unsafe-perm 
npm install -g genieacs --unsafe-perm 
git clone https://github.com/zaidka/genieacs-gui 
apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev
cd genieacs-gui 
bundle
cp config/summary_parameters-sample.yml config/summary_parameters.yml 
cp config/index_parameters-sample.yml config/index_parameters.yml 
cp config/parameter_renderers-sample.yml config/parameter_renderers.yml 
cp config/parameters_edit-sample.yml config/parameters_edit.yml 
cp config/roles-sample.yml config/roles.yml 
cp config/users-sample.yml config/users.yml 
cp config/graphs-sample.json.erb config/graphs.json.erb
cd db/migrate
sudo sed -i '1!b;s/$/\[4.2]/g' *.rb
cd ~/genieacs-gui
cat << EOF > ./genieacs-start.sh
#!/bin/sh
if tmux has-session -t 'genieacs'; then
  echo "GenieACS is already running."
  echo "To stop it use: ./genieacs-stop.sh"
  echo "To attach to it use: tmux attach -t genieacs"
else
  tmux new-session -s 'genieacs' -d
  tmux send-keys 'genieacs-cwmp' 'C-m'
  tmux split-window
  tmux send-keys 'genieacs-nbi' 'C-m'
  tmux split-window
  tmux send-keys 'genieacs-fs' 'C-m'
  tmux split-window
  tmux send-keys 'cd genieacs-gui' 'C-m'
  tmux send-keys 'rails server -b 0.0.0.0' 'C-m'
  tmux select-layout tiled 2>/dev/null
  tmux rename-window 'GenieACS'

  echo "GenieACS has been started in tmux session 'geneiacs'"
  echo "To attach to session, use: tmux attach -t genieacs"
  echo "To switch between panes use Ctrl+B-ArrowKey"
  echo "To deattach, press Ctrl+B-D"
  echo "To stop GenieACS, use: ./genieacs-stop.sh"
fi
EOF

cat << EOF > ./genieacs-stop.sh
#!/bin/sh
if tmux has-session -t 'genieacs' 2>/dev/null; then
  tmux kill-session -t genieacs 2>/dev/null
  echo "GenieACS has been stopped."
else
  echo "GenieACS is not running!"
fi
EOF

chmod +x genieacs-start.sh genieacs-stop.sh

genieacs-start.sh & genieacs-stop.sh are stored in /~ the script should be sudo’d to run without error.

How are you?, this message error.
image