Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

In the process of trying to install the Cloud9 IDE. I have major issues installing libxml. Is anyone else having similar problems?

share|improve this question
1  
What "major issues"? Are you following a specific set of instructions? Welcome to Stack Exchange! –  Alex Chamberlain Oct 25 '12 at 16:51
    
Im trying to install cloud9ide onto my raspberryPi, im following the github readme instructions that say "sm clone --dev github.com/ajaxorg/cloud9/tree/master cloud9" but it fails with the libxml thing (trying to get some meaningfull error messages together now....) i then found this which talks about building the xml module into the cloud9 source manually so that you can remove the one command line arg that is giving me all the grief, but source-mint and this approach don't seem to go well together –  Chris Matheson Oct 26 '12 at 7:47
add comment

2 Answers 2

Turns out the Node.js folks made precompiled binaries available for the Raspberry Pi.

Here's how I installed Cloud9 on Debian wheezy on my Raspberry Pi.

sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get -y install build-essential openssl libssl-dev pkg-config libxml2-dev
cd ~
wget http://nodejs.org/dist/v0.8.17/node-v0.8.17-linux-arm-pi.tar.gz
cd /usr/local
sudo tar xzvf ~/node-v0.8.17-linux-arm-pi.tar.gz --strip=1
export NODE_PATH="/usr/local/lib/node_modules"
sudo npm install -g sm
sudo chown -Rf 1000:1000 /usr/local/lib/node_modules/sm
git clone https://github.com/ajaxorg/cloud9.git cloud9
cd cloud9 && mkdir node_modules && cd node_modules
git clone https://github.com/ajaxorg/node-libxml.git libxml
cd libxml && git checkout v0.0.7 && git submodule init && git submodule update
nano support/o3/wscript

Delete the -msse2 options, save and exit nano.

sudo npm install -g
cd ~/cloud9
sudo npm install

Compiling libxml took 17-18 minutes. The rest of it took may be a hour.

To run Cloud9,

bin/cloud9.sh -l 0.0.0.0

Then on any browser, go to http://<raspberry-pi-ip-address>:3131/.

share|improve this answer
add comment

With no more information, I'll still try to answer.

Did you try to install libxml with the following command?

sudo apt-get install libxml2-dev
share|improve this answer
    
+1. I think "libxml" is referring to a javascript wrapper; of which, libxml2-dev will need to be installed on the base system. –  emcconville Oct 25 '12 at 21:26
    
Thanks for everyone replies, yes i believe that the error i got was for the npm module libxml. i left a issue on the github repo for the module. @emcconville, thanks for that sugestion ill try it now. . . . –  Chris Matheson Oct 26 '12 at 7:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.