3

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

Alex Chamberlain
  • 15,638
  • 15
  • 69
  • 113
Chris Matheson
  • 251
  • 2
  • 3
  • 4

2 Answers2

6

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/.

G Ragib
  • 97
  • 1
  • 4
2

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
Morgan Courbet
  • 3,703
  • 3
  • 23
  • 38