Blaast SDK: Failed to install node-xmpp

Masalah yang terjadi

Setelah sekian lama akhirnya hari ini saya menguatkan niat saya untuk memperbaharui Blaast SDK dengan versi yang terbaru. Awalnya saya berpikir kalau proses akan instalasi Blaast SDK terbaru akan berlangsung dengan baik-baik saja, tetapi nyatanya tidak baik-baik saja. Coba lihat log instalasi berikut:

ghazali@laptop:/opt/blaast-sdk$  sudo ./install.sh
No apps dir
installing webworker@0.8.3 (backend)
npm info it worked if it ends with ok
npm info using npm@0.3.18
npm info using node@v0.4.7
npm info install Nothing to do
npm ok
installing jsdom@0.2.0 (backend)
npm info it worked if it ends with ok
npm info using npm@0.3.18
npm info using node@v0.4.7
npm info install Nothing to do
npm ok
installing htmlparser@1.7.3 (backend)
npm info it worked if it ends with ok
npm info using npm@0.3.18
npm info using node@v0.4.7
npm info install Nothing to do
npm ok
installing node-xmpp (backend)
npm info it worked if it ends with ok
npm info using npm@0.3.18
npm info using node@v0.4.7
npm info range node-expat@>=1.3.1
npm info range ltx@>= 0.0.4
npm info preinstall node-xmpp@0.2.10
npm info preinstall ltx@0.0.5
npm info preinstall node-expat@1.4.0
npm info install node-xmpp@0.2.10
npm info postinstall node-xmpp@0.2.10
npm info preactivate node-xmpp@0.2.10
npm info activate node-xmpp@0.2.10
npm info postactivate node-xmpp@0.2.10
npm info install ltx@0.0.5
npm info postinstall ltx@0.0.5
npm info preactivate ltx@0.0.5
npm info activate ltx@0.0.5
npm info postactivate ltx@0.0.5
npm info install node-expat@1.4.0
Checking for program g++ or c++          : /usr/bin/g++
Checking for program cpp                 : /usr/bin/cpp
Checking for program ar                  : /usr/bin/ar
Checking for program ranlib              : /usr/bin/ranlib
Checking for g++                         : ok
Checking for node path                   : ok /opt/blaast-sdk/boot/n/versions/0.4.7/lib/node
Checking for node prefix                 : ok /opt/blaast-sdk/boot/n/versions/0.4.7
<strong>Checking for header expat.h : not installed</strong>
/opt/blaast-sdk/boot/n/versions/0.4.7/lib/node/.npm/node-expat/1.4.0/package/wscript:13: error: the configuration failed (see '/opt/blaast-sdk/boot/n/versions/0.4.7/lib/node/.npm/node-expat/1.4.0/package/build/config.log')
npm info node-expat@1.4.0 Failed to exec install script
npm ERR! install failed Error: node-expat@1.4.0 install: `node-waf configure build`
npm ERR! install failed `sh "-c" "node-waf configure build"` failed with 1
npm ERR! install failed     at ChildProcess. (/opt/blaast-sdk/3rdparty/npm/lib/utils/exec.js:49:20)
npm ERR! install failed     at ChildProcess.emit (events.js:67:17)
npm ERR! install failed     at ChildProcess.onexit (child_process.js:192:12)
npm info install failed rollback
npm info uninstall [ 'node-xmpp@0.2.10',
npm info uninstall   'node-expat@1.4.0',
npm info uninstall   'ltx@0.0.5' ]
npm info preuninstall node-xmpp@0.2.10
npm info preuninstall node-expat@1.4.0
npm info preuninstall ltx@0.0.5
npm info uninstall node-xmpp@0.2.10
npm info uninstall node-expat@1.4.0
npm info uninstall ltx@0.0.5
npm info auto-deactive not symlink
npm info postuninstall node-expat@1.4.0
npm info predeactivate node-xmpp@0.2.10
npm info predeactivate ltx@0.0.5
npm info deactivate node-xmpp@0.2.10
npm info deactivate ltx@0.0.5
npm info postdeactivate node-xmpp@0.2.10
npm info postdeactivate ltx@0.0.5
npm info postuninstall node-xmpp@0.2.10
npm info postuninstall ltx@0.0.5
npm info uninstall node-expat@1.4.0 complete
npm info uninstall ltx@0.0.5 complete
npm info uninstall node-xmpp@0.2.10 complete
npm info install failed rolled back
npm ERR! Error: node-expat@1.4.0 install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!     at ChildProcess. (/opt/blaast-sdk/3rdparty/npm/lib/utils/exec.js:49:20)
npm ERR!     at ChildProcess.emit (events.js:67:17)
npm ERR!     at ChildProcess.onexit (child_process.js:192:12)
npm ERR!
npm ERR! Failed at the node-expat@1.4.0 install script.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-waf configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-expat
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-33-generic
npm ERR! argv { remain:
npm ERR! argv    [ 'node-xmpp',
npm ERR! argv      'node-expat@>=1.3.1',
npm ERR! argv      'ltx@>= 0.0.4',
npm ERR! argv      'node-expat@>=1.2.0' ],
npm ERR! argv   cooked:
npm ERR! argv    [ '--must-install',
npm ERR! argv      'false',
npm ERR! argv      'install',
npm ERR! argv      'node-xmpp' ],
npm ERR! argv   original:
npm ERR! argv    [ '--must-install',
npm ERR! argv      'false',
npm ERR! argv      'install',
npm ERR! argv      'node-xmpp' ] }
npm not ok
Failed to install node-xmpp

dan log instalasi pada baris ke-48:

Checking for header expat.h : not installed

log tersebut memberitahukan bahwa expat.h belum ada, sehingga saat ini saya berasumsi saya perlu melakukan instalasi expat.h terlebih dahulu. Let’s see what I got, later.

Install package expat

Selanjutnya saya lakukan instalasi expat dengan menjalankan perintah:

sudo apt-get install expat


ghazali@laptop:/opt/blaast-sdk$  sudo apt-get install expat
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  expat
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.9kB of archives.
After this operation, 81.9kB of additional disk space will be used.
Get:1 http://id.archive.ubuntu.com/ubuntu/ lucid/universe expat 2.0.1-7ubuntu1 [23.9kB]
Fetched 23.9kB in 1s (14.2kB/s)
Selecting previously deselected package expat.
(Reading database ... 147066 files and directories currently installed.)
Unpacking expat (from .../expat_2.0.1-7ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up expat (2.0.1-7ubuntu1) ...

Install package libexpat1-dev

Cara di atas masih juga belum berhasil mengatasi masalah ini dan tampaknya saya install package yang salah. Saya coba cara lain dengan melakukan instalasi libexpat1-dev:

ghazali@laptop:/opt/blaast-sdk$ sudo apt-get install libexpat1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libexpat1-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 213kB of archives.
After this operation, 684kB of additional disk space will be used.
Get:1 http://id.archive.ubuntu.com/ubuntu/ lucid/main libexpat1-dev 2.0.1-7ubuntu1 [213kB]
Fetched 213kB in 5s (36.4kB/s)
Selecting previously deselected package libexpat1-dev.
(Reading database ... 147072 files and directories currently installed.)
Unpacking libexpat1-dev (from .../libexpat1-dev_2.0.1-7ubuntu1_i386.deb) ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up libexpat1-dev (2.0.1-7ubuntu1) ...

Screenshot - Welcome to Blaast Rocket

Screenshot - Welcome to Blaast Rocket

Setelah install package libexpat1-dev, saya kembali mencoba melakukan instalasi Blaast SDK dan hasilnya proses instalasi berjalan dengan mulus.

Catatan

Sedikit detail development enviroment yang saya gunakan:

  1. Ubuntu 10.04.3 LTS
  2. Linux kernel version: 2.6.32-33-generic

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s