Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i want to install jailkit in ubuntu http://ubuntuforums.org/showthread.php?t=248724

so i have downloaded jailkit http://olivier.sessink.nl/jailkit/index.html#download

after downloading i did tar

then cd in to directory

./configure

make (error)

How do i install it ?

i am installing (compile) it on Ubuntu server 11.10

UPDATE

(make error)

(asroot) make

make[1]: Entering directory `/home/one/jailkit-2.14/src'

gcc   -lpthread  -o jk_socketd jk_socketd.o jk_lib.o utils.o iniparser.o

jk_socketd.o: In function `main':

/home/one/jailkit-2.14/src/jk_socketd.c:474: undefined reference to `pthread_create'

collect2: ld returned 1 exit status

make[1]: *** [jk_socketd] Error 1

make[1]: Leaving directory `/home/one/jailkit-2.14/src'

make: *** [all] Error 2

root@ubuntu:/home/one/jailkit-2.14# 
share|improve this question
    
We need to see the error from when you try to make –  benwh Jan 5 '12 at 21:00
    
updated........ –  One Zero Jan 5 '12 at 21:06
add comment

3 Answers 3

up vote 2 down vote accepted

Yep I just got exactly the same on mine. The linker isn't getting the correct flags.

make clean
export LDFLAGS="-pthread"
./configure && make
share|improve this answer
    
./configure && make > then make install ? or its installed ? –  One Zero Jan 5 '12 at 21:13
    
Sorry, yes you'll need to do a (sudo) make install afterwards if you want to install it system-wide –  benwh Jan 5 '12 at 21:17
    
thanks alot..... –  One Zero Jan 5 '12 at 21:24
add comment

To avoid compilation errors, there is a PPA (ppa:jailkit/ppa) for jailkit available.

What are PPAs and how do I use them?

share|improve this answer
add comment

Another way to install JailKit

apt-get install build-essential autoconf automake1.9 libtool flex bison debhelper binutils-gold
cd /tmp
wget http://olivier.sessink.nl/jailkit/jailkit-2.14.tar.gz
tar xvfz jailkit-2.14.tar.gz
cd jailkit-2.14
./debian/rules binary

You can now install the Jailkit .deb package as follows:

cd ..
dpkg -i jailkit_2.14-1_*.deb

Help " 19 Install Jailkit "

share|improve this answer
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.