Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i want to install jailkit in ubuntu

so i have downloaded jailkit

after downloading i did tar

then cd in to directory


make (error)

How do i install it ?

i am installing (compile) it on Ubuntu server 11.10


(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

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
up vote 3 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

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

Another way to install JailKit

apt-get install build-essential autoconf automake1.9 libtool flex bison debhelper binutils-gold
cd /tmp
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

Your Answer


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.