Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
  1. #1
    Just 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!

  2. #2
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    385
    Since this is a homework question I'll give you a clue. It's the largest directory in the root of the filesystem.

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    10
    Hi,
    I think it's '/etc' ? but i'm not sure...

  4. #4
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    385
    Run
    Code:
    du -shc /
    as root in order to find out the sizes of the root folders.

  5. #5
    Just Joined!
    Join Date
    Nov 2011
    Posts
    10
    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
    It's in dutch, 'kan geen toegang krijgen tot' means 'has no access to'
    'Bestand of map bestaat niet' means file or dir doesn't exist

    so I have no results ...

  6. #6
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    385
    I think I may have specified the command wrong. Try changing your directory to / and running
    Code:
    du -shc *
    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.

  7. #7
    Just 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

  8. #8
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    385
    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

  9. #9
    Just Joined!
    Join Date
    Nov 2011
    Posts
    10
    Many thanks!

    so in short
    The steps:

    Code:
    root@user:./# ./configure --prefix /usr
    root@user:./# ./make LIBDIR=/usr/lib INCIDR=/include install
    Is this sufficient?

  10. #10
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    385
    Just a few corrections: when using options with configure you'll need to specify the arguments with =, and so the first line should be:
    Code:
    ./configure --prefix=/usr
    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.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...