mhorton
Posts: 1
Joined: Wed May 08, 2019 8:07 pm

How to recompile dhcpcd

Wed May 08, 2019 8:17 pm

I have a copy of Stretch installed, which comes with dhcpcd 6.11.5. I would like to modify dhcpcd,and I'm having trouble.

I downloaded the current dhcpcd 7.99 from github. It compiles OK but does not run correctly, and it's clearly very different from the one on the system.

I downloaded the 6.11.1-DNA version from github, but it won't compile. It seems to want the header file <curl/curl.h>, which is not in the package, and even though curl is installed on my PI, there is no such header file in /usr/include.

The Raspbian branch on github doesn't seem to include utilities like dhcpcd.

Where can I find, or how can I configure, dhcpcd source code to compile and run correctly on my pi?

User avatar
rpdom
Posts: 14063
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: How to recompile dhcpcd

Thu May 09, 2019 5:00 am

mhorton wrote:
Wed May 08, 2019 8:17 pm
Where can I find, or how can I configure, dhcpcd source code to compile and run correctly on my pi?
Uncomment the line in /etc/apt/sources.list that says

Code: Select all

#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
Then

Code: Select all

sudo apt update
apt source dhcpcd
and the full source will be downloaded. You may need to install some additional packages to be able to compile it and build a new package (see package build instructions for Debian).
Signature is on holiday.

Return to “Raspbian”