i create tgkg with this script http://pastebin.com/QBVDSqXC and was able to 
run node. 
but when i type npm i get: '/home/t/bin/npm: Permission denied'  

any ideas?


#!/bin/sh
set -e

VERSION=0.8.4
PKGVER=1

OS=`tpkg --qenv | grep 'Operating System' | awk '{print $NF}'`
ARCH=`tpkg --qenv | grep 'Architecture' | awk '{print $NF}'`

# We don't want to compile against random artifacts
export PATH=/home/t/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin

tpkg -i git
tpkg -i python-2.7.2-2-redhat5-x86_64.tpkg  # Python 2.x required for 0.8.4 
release
# User will need to ensure that their path points to this version of python 
when 
# building this package ... if python 3.x is used, the ./configure command 
will fail
# with syntax issues
echo symlinking python 2.7 in /home/t/bin 
sudo ln -s /home/t/bin/python2.7 /home/t/bin/python

rm -rf node
git clone --depth 1 git://github.com/joyent/node.git # or git clone 
git://github.com/joyent/node.git if you want to checkout a stable tag
cd node
git checkout v$VERSION # optional.  Note that master is unstable.
export JOBS=2 # optional, sets number of parallel commands.

pkgdir=`mktemp -d -t tpkg.XXXXXX`
mkdir -p $pkgdir/root/home/t

./configure --prefix=/home/t
make
make install DESTDIR=$pkgdir/root

sudo unlink /home/t/bin/python
echo removed python symlink from /home/t/bin 

cat ../tpkg.yml | \
    sed "s/VERSION/$VERSION/" | \
    sed "s/PKGVER/$PKGVER/" | \
    sed "s/OS/$OS/" | \
    sed "s/ARCH/$ARCH/" \
    > $pkgdir/tpkg.yml

tpkg --make $pkgdir
echo $pkgdir was left behind. Feel free to clean it up.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to