Results 1 to 10 of 18
Hi,
I like to install a DHCP on my ubuntu version 10.04 on a virtual box.
It's an exercise from school.
We need to install DHCP from source.
I downloaded ...
- 11-11-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 10
Installing DHCP
Hi,
I like to install a DHCP on my ubuntu version 10.04 on a virtual box.
It's an exercise from school.
We need to install DHCP from source.
I downloaded the tar file from isc.org and extract it on my desktop.
I know the steps:
Configure
make && make install
but where do i need to install this dhcp?
I know there is an option in configure (--prefix)
But i don't know where to install the dhcp.
Something like this?
user#./configure --preix /etc
Because on my excercise we have to think where we need to install the dhcp
It's not allowed to download the dhcp from apt-get...
Someone who can help me ?
thnx!
- 11-11-2011 #2
Since this is a homework question I'll give you a clue. It's the largest directory in the root of the filesystem.
- 11-11-2011 #3Just Joined!
- Join Date
- Nov 2011
- Posts
- 10
Hi,
I think it's '/etc' ? but i'm not sure...
- 11-11-2011 #4
Run
as root in order to find out the sizes of the root folders.Code:du -shc /
- 11-11-2011 #5Just Joined!
- Join Date
- Nov 2011
- Posts
- 10
It's in dutch, 'kan geen toegang krijgen tot' means 'has no access to'Code:root@user:/# du -shc / du: kan geen toegang krijgen tot ‘/home/user/.gvfs’: Toegang geweigerd du: kan geen toegang krijgen tot ‘/proc/2274/task/2274/fd/4’: Bestand of map bestaat niet du: kan geen toegang krijgen tot ‘/proc/2274/task/2274/fdinfo/4’: Bestand of map bestaat niet du: kan geen toegang krijgen tot ‘/proc/2274/fd/4’: Bestand of map bestaat niet du: kan geen toegang krijgen tot ‘/proc/2274/fdinfo/4’: Bestand of map bestaat niet 2,5G / 2,5G totaal
'Bestand of map bestaat niet' means file or dir doesn't exist
so I have no results ...
- 11-11-2011 #6
I think I may have specified the command wrong. Try changing your directory to / and running
The permission denied stuff for .gvfs is to do with the FUSE filesystem as they made the decision to not allow root access by default, which is a decision I completely disagree with.Code:du -shc *
- 11-11-2011 #7Just Joined!
- Join Date
- Nov 2011
- Posts
- 10
Ok thnx!
My largest directory is /usr so i need to install it in /usr ?
Code:root@user:/# du -shc * 6,5M bin 16M boot 4,0K cdrom 2,2M dev 15M etc du: kan geen toegang krijgen tot ‘home/user/.gvfs’: Toegang geweigerd 18G home 0 initrd.img 134M lib 16K lost+found 52G media 4,0K mnt du: kan geen toegang krijgen tot ‘proc/3343/task/3343/fd/4’: Bestand of map bestaat niet du: kan geen toegang krijgen tot ‘proc/3343/task/3343/fdinfo/4’: Bestand of map bestaat niet du: kan geen toegang krijgen tot ‘proc/3343/fd/4’: Bestand of map bestaat niet du: kan geen toegang krijgen tot ‘proc/3343/fdinfo/4’: Bestand of map bestaat niet 0 proc 108K root 7,5M sbin 4,0K selinux 4,0K srv 0 sys 176K tmp 2,5G usr 340M var 0 vmlinuz 73G totaal
- 11-11-2011 #8
Yes, /usr is the standard directory for installing software from source. Sometimes distros like to have additional software installed to /usr/local in order to keep it from conflicting with the system, but I rarely have any problems installing straight to /usr.
Typically programs like DHCPD should already point themselves towards /usr by simply using ./configure, but this isn't always the case with most programs. In doesn't hurt to define it and make sure, and so you should find it in /usr/sbin. Additionally I would recommend the following command for installation of DHCPD:Code:make LIBDIR=/usr/lib INCDIR=/usr/include install
- 11-11-2011 #9Just Joined!
- Join Date
- Nov 2011
- Posts
- 10
Many thanks!
so in short
The steps:
Is this sufficient?Code:root@user:./# ./configure --prefix /usr root@user:./# ./make LIBDIR=/usr/lib INCIDR=/include install
- 11-11-2011 #10
Just a few corrections: when using options with configure you'll need to specify the arguments with =, and so the first line should be:
Also you've misspelled INCDIR in the 'make install' line, make sure you watch out for typos. Lastly there should be a command that goes inbetween configure and make install, you've already mentioned it in your original post.Code:./configure --prefix=/usr


Reply With Quote