Many thanks for pointing that out, Bruce.

Actually, I did 'run' the "make install-service-dhcpcd" from a 'blf
boot scripts' archive. And to double-check, I just re-ran it again.
But interestingly it didn't solve the problem.

However,looking at its output,I found it wasn't installing dhcpcd to
the right directory (should be /lib/services). And the reason was
somehow I had been using "blfs-bootscripts-20080816.tar.bz2", instead
of the correct one "blfs-bootscripts-20120702.tar.bz2".

Most probably I downloaded the outdated archive from a google search
link. Not sure whether it was just me. But googling "blfs boot
scripts" points to the following page, which links to the old archive.
http://www.linuxfromscratch.org/blfs/view/6.3/introduction/bootscripts.html

After installing from the lastest tar, the problem is solved.

Thanks again.

On Thu, Jul 19, 2012 at 10:38 PM, Bruce Dubbs <[email protected]> wrote:
> Linmao Song wrote:
>> Hi,
>>
>> I followed the instructions to build, and install dhcpcd-5.6.1. Not
>> sure what went wrong, but upon reboot, the following error shows up:
>>
>>     Bring up the eth0 interface...
>>     Unable to process /etc/sysconfig/ifconfig.eth0. Either the SERVICE 
>> 'dhcpcd'
>> ***not present or cannot be executed.
>>
>> Did some diagnose and this seems to be output by '/sbin/ifup'. And
>> this script seems to be looking for dhcpd under directory
>> /lib/services/dhcpcd, which wasn't present in my installation.
>>
>> It appears adding a symbolic link fixes the problem:
>> cd /lib/services
>> ln -s /sbin/dhcpcd dhcpcd
>>
>> However, I suspect the root cause was I missed someting. But going
>> through the instruction page, I don't seem to find any steps I missed.
>>
>> Any ideas?
>
> Sure.  Follow the instructions in the dhcpcd page.  Specifically:
>
> To configure dhcpcd, you need to first install the network service
> script, /lib/services/dhcpcd included in the blfs-bootscripts-20120702
> package (as user root):
>
> make install-service-dhcpcd
>
> That symlink you made is wrong.
>
>    -- Bruce
> --
> http://linuxfromscratch.org/mailman/listinfo/blfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to