Can't install WebIDE, nodejs-legacy problem.

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
Sanborn
 
Posts: 6
Joined: Sun May 05, 2013 4:45 pm

Can't install WebIDE, nodejs-legacy problem.

Post by Sanborn »

Is WebIDE only supported on Occidental? I'm running the latest version of Debian.

If I run "curl https://raw.github.com/adafruit/Adafrui ... install.sh | sudo sh" this is what I get:

Image

Seems like an easy program to fix, anyone know what's up?

User avatar
mrkahuna
 
Posts: 19
Joined: Mon Feb 04, 2013 5:16 pm

Re: Can't install WebIDE, nodejs-legacy problem.

Post by mrkahuna »

Which version of Debian are you running? Perhaps did you mean Raspbian?

I have WebIDE running on the lastest (Feb 1013 plus updates) version of Raspbian. Does a normal apt-get update & upgrade work on your system?

Your problem sounds similar to this one: http://www.raspberrypi.org/phpBB3/viewt ... 3&p=291844 The fact you're trying to get files from the qmh-project.org domain seems to indicate that you have some older config files?

Sanborn
 
Posts: 6
Joined: Sun May 05, 2013 4:45 pm

Re: Can't install WebIDE, nodejs-legacy problem.

Post by Sanborn »

Yep, my bad. I'm still getting used to the Pi lingo & *nix.

I bought a pre-flashed card from Element 14 about 6 months ago (and it sat in the box) that says Debian 6 for Linux on the flash and I have done both sudo update and upgrade a few times since then.

Edit1 - Found out how to do this from the other thread you linked, this is what I'm running:

$ uname -a
Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux

$ cat /proc/version
Linux version 3.2.27+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #160 PREEMPT Mon Sep 17 23:18:42 BST 2012

Sanborn
 
Posts: 6
Joined: Sun May 05, 2013 4:45 pm

Re: Can't install WebIDE, nodejs-legacy problem.

Post by Sanborn »

Ok, I just realized from that other thread that I've only been running upgrade and not dist-upgrade.

It's currently running $ apt-get update && apt-get dist-upgrade

Sanborn
 
Posts: 6
Joined: Sun May 05, 2013 4:45 pm

Re: Can't install WebIDE, nodejs-legacy problem.

Post by Sanborn »

I have a feeling that I'm being an idiot....I'm totally running Debian and don't even have Rasbian, right?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Can't install WebIDE, nodejs-legacy problem.

Post by adafruit_support_mike »

The output you got from `cat /proc/version` is nearly identical to what I just got from my RasPi running Wheezy (mine is the October 18 2012 build), so you should be good there.

The main problem seems to be an outdated link in the package update files. The critical line in the list of things going wrong is the one that says, "could not resolve 'archive.qmh-project.org'".

That's a DNS problem.

I just tried to resolve that address myself, and the machines I have show no address for 'archive.qmh-project.org', any other common machine name in that network, or the 'qmh-project.org' network itself.

It looks like the problem is an outdated link in the apt-get package description files. Try running:

Code: Select all

sudo apt-get install nodejs-legacy
now that you've done the update.

Sanborn
 
Posts: 6
Joined: Sun May 05, 2013 4:45 pm

Re: Can't install WebIDE, nodejs-legacy problem.

Post by Sanborn »

Yeah...something is wack.

root@raspberrypi:~# sudo apt-get install nodejs-legacy
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nodejs-legacy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'nodejs-legacy' has no installation candidate

My card reading is coming on Wednesday, I think I'm just going to restart with Occidentalis.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Can't install WebIDE, nodejs-legacy problem.

Post by adafruit_support_mike »

Hmm.. that package doesn't seem to have been removed from the basic Debian packages. I just downloaded a copy manually here: http://packages.debian.org/sid/all/node ... y/download

The general look of the thing suggests a problem with dependencies in the package tree. I'll talk to the guys who handle WebIDE and see if they've seen the issue or have any suggestions.

User avatar
jwcooper
 
Posts: 1004
Joined: Tue May 01, 2012 9:08 pm

Re: Can't install WebIDE, nodejs-legacy problem.

Post by jwcooper »

Are you able to install any other programs? Can you try installing redis (another webide dependency):

Code: Select all

sudo apt-get install redis-server
or try to search for node packages

Code: Select all

sudo apt-cache search nodejs
I just did a apt-get update && apt-get upgrade and my Raspbian was able to install nodejs-legacy without issue (I was worried it had been removed from the repository).

Code: Select all

pi@raspberrypi ~ $ sudo apt-cache search nodejs
node-lru-cache - Javascript least-recently-used cache object - NodeJS
node-request - simplified HTTP request client for NodeJS
node-semver - Semantic versioner for NodeJS
nodejs - Node.js event-based server-side javascript engine
nodejs-dbg - Node.js event-based server-side javascript engine (debug)
nodejs-dev - Development files for Node.js
nodejs-legacy - Node.js event-based server-side javascript engine (legacy symlink)
pi@raspberrypi ~ $ sudo apt-get install nodejs-legacy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  icelib libblas3gf liblapack3gf libqt4-dbus qdbus
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  nodejs-legacy
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/52.0 kB of archives.
After this operation, 109 kB of additional disk space will be used.
Selecting previously unselected package nodejs-legacy.
(Reading database ... 65162 files and directories currently installed.)
Unpacking nodejs-legacy (from .../nodejs-legacy_0.6.19~dfsg1-6_all.deb) ...
Processing triggers for man-db ...
Setting up nodejs-legacy (0.6.19~dfsg1-6) ...
pi@raspberrypi ~ $ cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
pi@raspberrypi ~ $ 

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”