Install MapStore2 on Ubuntu 16.04

848 views
Skip to first unread message

Make

unread,
Nov 30, 2016, 5:30:37 AM11/30/16
to mapstore-users
Hello everybody!

I want to install MapStore2 on Ubuntu 16.04.
On the internet I found only this information for quickly installation: https://github.com/geosolutions-it/MapStore2.
But I can't install MapStore2.
When I run a command: "npm install" and "npm start", I have a many errors.

Tell me please, where I can find a step-by-step installation guide of MapStore2 on Ubuntu 16.04.
Also, what other additional software must be installed to the correctly work MapStore2 (e.g. Tomcat etc).

Thank you!

Mauro Bartolomeoli

unread,
Dec 1, 2016, 7:44:59 AM12/1/16
to mapstor...@googlegroups.com
Hi,
would you like to develop on MapStore2 or just install it on your environment and run it?

If you just want to install it and use it, you can download the latest war from here: https://github.com/geosolutions-it/MapStore2/releases/download/0.3.0/mapstore.war
Then you can install it in a java container (e.g. Tomcat). If you are not familiar with Tomcat I can give you some hints, let me know.




On the internet I found only this information for quickly installation: https://github.com/geosolutions-it/MapStore2.
But I can't install MapStore2.
When I run a command: "npm install" and "npm start", I have a many errors.

Can you send me the output with the list of errors?

Regards,
Mauro


--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
fax:     +39 0584 1660272


-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

 

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

Make

unread,
Dec 1, 2016, 11:16:10 PM12/1/16
to mapstore-users
Hi Mauro,

I want to install a MapStore2 and develop it.
I install only a Tomcat8 on Ubuntu 16.04, no more programs are not installed.
What else additional programs I need install?
When I try install MapStore2 from the site https://github.com/geosolutions-it/MapStore2,
I have the following errors:

user@user-VB:~/Desktop/MapStore2$ ll
total 8
drwxrwxr-x 2 user user 4096 Жел  2 09:40 ./
drwxr-xr-x 4 user user 4096 Қар 30 15:48 ../
user@user-VB:~/Desktop/MapStore2$
user@user-VB:~/Desktop/MapStore2$ git clone --recursive https://github.com/geosolutions-it/MapStore2.git
Cloning into 'MapStore2'...
remote: Counting objects: 14828, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 14828 (delta 0), reused 0 (delta 0), pack-reused 14825
Receiving objects: 100% (14828/14828), 12.80 MiB | 339.00 KiB/s, done.
Resolving deltas: 100% (9241/9241), done.
Checking connectivity... done.
user@user-VB:~/Desktop/MapStore2$ npm install
npm ERR! install Couldn't read dependencies
npm ERR! Linux 4.4.0-47-generic
npm ERR! argv "/home/user/.nvm/versions/io.js/v3.3.1/bin/iojs" "/home/user/.nvm/versions/io.js/v3.3.1/bin/npm" "install"
npm ERR! node v3.3.1
npm ERR! npm  v2.14.3
npm ERR! path /home/user/Desktop/MapStore2/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! syscall open

npm ERR! package.json ENOENT: no such file or directory, open '/home/user/Desktop/MapStore2/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/user/Desktop/MapStore2/npm-debug.log
user@user-VB:~/Desktop/MapStore2$
user@user-VB:~/Desktop/MapStore2$ sudo npm install
[sudo] password for user:
npm WARN enoent ENOENT: no such file or directory, open '/home/user/Desktop/MapStore2/package.json'
npm WARN MapStore2 No description
npm WARN MapStore2 No repository field.
npm WARN MapStore2 No README data
npm WARN MapStore2 No license field.
user@user-VB:~/Desktop/MapStore2$

Mauro Bartolomeoli

unread,
Dec 2, 2016, 3:24:12 AM12/2/16
to mapstor...@googlegroups.com
Hi,
looking at the commands you run:

:~/Desktop/MapStore2$ git clone --recursive https://github.com/geosolutions-it/MapStore2.git

This is going to create a MapStore2 folder in ~/Desktop/MapStore2, so you need to move to that folder before running npm install:

cd ~/Desktop/MapStore2/MapStore2

npm install

npm start

Mauro


--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-users+unsubscribe@googlegroups.com.
To post to this group, send email to mapstore-users@googlegroups.com.
Visit this group at https://groups.google.com/group/mapstore-users.
For more options, visit https://groups.google.com/d/optout.

Make

unread,
Dec 2, 2016, 4:44:15 AM12/2/16
to mapstore-users
Hi Mauro!

I try run a command, but the errors are still there.

npm_install.txt
npm_install_with_SUDO.txt

Mauro Bartolomeoli

unread,
Dec 2, 2016, 5:23:48 AM12/2/16
to mapstor...@googlegroups.com
Hi,
it looks like the first run failed due to network issues, but the second one (with sudo) looks good to me.

Mauro


2016-12-02 10:44 GMT+01:00 Make <murama...@gmail.com>:
Hi Mauro!

I try run a command, but the errors are still there.

Reply all
Reply to author
Forward
0 new messages