• Benvenuti su RaspberryItaly!
Benvenuto ospite! Login Login con Facebook Registrati Login with Facebook


Valutazione discussione:
  • 0 voto(i) - 0 media
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Tags
adafruit installazione problemi

Problemi Installazione Adafruit
#1
Ciao a tutti,
vorrei sfruttare il Pi per sviluppare online e ho visto che questo software fa al caso mio adafruit
https://learn.adafruit.com/webide/installation

Purtroppo riscontro errori che non riesco a risolvere, di seguito il log dell'installazione Log installation

In alternativa conoscete altri software simili?

Grazie in anticipo
Risposta
#2
Adafruit è un grosso produttore e distributore di accessori per RaspberryPi, con un impegno particolare anche nello sviluppo di software di supporto e tutorial.
Il software che stai cercando di installare si chiama Adafruit WebIDE. In sostanza un IDE per Python, Ruby e Javascript che funziona via browser web, attualmente in beta (questo chiarimento a beneficio degli altri utenti).

Si può installare in due modi, tu quale modo hai seguito?
Ti consiglio di usare quello SSH, magari con Mobaxterm invece del povero Putty
Codice:
curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/master/scripts/install.sh | sudo sh

Poi vi accedi via web da un altro computer ( gli unici browser supportati sono Google Chrome e Mozilla Firefox) puntando a xxx.xxx.xxx.xxx:8080 , dove le xx rappresentano l'indirizzo IP del Raspberry.

dal tuo log si evince che non riesce a installare le dipendenze di webide per problemi di permessi, e ti invita a farlo da amministratore. prova allora adigitare prima del comando un
Codice:
su
seguito dalla password di root.
Risposta
#3
Si ho seguito l'installazione da questa pagina https://learn.adafruit.com/webide/installation
Ho provato a rieseguirla accreditandomi prima come "su" di seguito il risultato:



Citazione:pi@raspberrypi:~ $ su

Password:
root@raspberrypi:/home/pi# curl https://raw.githubusercontent.com/adafru...install.sh | sudo sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3758  100  3758    0     0   9348      0 --:--:-- --:--:-- --:--:--  9371
false
**** Downloading the latest version of the WebIDE ****
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   131    0   131    0     0    190      0 --:--:-- --:--:-- --:--:--   190
100 2379k    0 2379k    0     0   414k      0 --:--:--  0:00:05 --:--:--  516k
**** Installing required libraries ****
**** (nodejs-legacy npm git i2c-tools python-smbus ntp libkrb5-dev) ****
Hit:1 http://repo.mosquitto.org/debian stretch InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Get:3 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB]
Get:4 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [30.7 kB]
Fetched 71.0 kB in 1s (44.1 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.11.0-3+deb9u2).
i2c-tools is already the newest version (3.1.2-3).
libkrb5-dev is already the newest version (1.15-1+deb9u1).
nodejs-legacy is already the newest version (4.8.2~dfsg-1).
npm is already the newest version (1.4.21+ds-2).
ntp is already the newest version (1:4.2.8p10+dfsg-3+deb9u2).
python-smbus is already the newest version (3.1.2-3).
The following packages were automatically installed and are no longer required:
  dnsutils echoping libconfig-grammar-perl libjs-cropper libjs-prototype libjs-scriptaculous libsnmp-session-perl
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
**** Create webide user and group ****
groupadd: group 'webide' already exists
useradd: user 'webide' already exists
**** Adding webide user to sudoers ****
/etc/sudoers.tmp: parsed OK
/etc/sudoers.d/010_pi-nopasswd: parsed OK
/etc/sudoers.d/README: parsed OK
**** Installing webide dependencies ****
npm ERR! Error: EPERM: operation not permitted, chown '/home/webide/.npmrc'
npm ERR!     at Error (native)
npm ERR!  { [Error: EPERM: operation not permitted, chown '/home/webide/.npmrc']
npm ERR!   errno: -1,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'chown',
npm ERR!   path: '/home/webide/.npmrc' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 4.14.34-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "config" "set" "tmp" "/home/webide/tmp"
npm ERR! cwd /usr/share/adafruit/webide
npm ERR! node -v v4.8.2
npm ERR! npm -v 1.4.21
npm ERR! path /home/webide/.npmrc
npm ERR! syscall chown
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! stack Error: EPERM: operation not permitted, chown '/home/webide/.npmrc'
npm ERR! stack     at Error (native)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/share/adafruit/webide/npm-debug.log
npm ERR! not ok code 0




I problemi sembrerebbero sul comando "chown"

questo il contenuto di .npmrc
root@raspberrypi:/usr/share/adafruit/webide# cat /home/webide/.npmrc
tmp = /home/webide/tmp

ho dato un'occhiata allo script, l'errore è causato da questo comando

sudo -u webide npm install
Risposta
  


Vai al forum:


Navigazione: 1 Ospite(i)
Forum con nuovi Post
Forum senza nuovi post
Forum bloccato
Forum Redirect