[etherlab-users] ./configure error
Jun Yuan
j.yuan at rtleaders.com
Thu Oct 30 11:11:31 CET 2014
Hi wuybit,
don't worry. /etc/sysconfig is only for etherlab. Yes, just create the
directory /etc/sysconfig first, and then copy the config file into it.
You're not using a SUSE Linux, so 'insserv ethercat' won't work.It is a
Debian Linux. You may follow my command list
$ sudo ln -s /opt/etherlab/etc/init.d/ethercat /etc/init.d/ethercat
$ sudo cp -r /opt/etherlab/etc/sysconfig/ /etc/
$ sudo ln -s /opt/etherlab/bin/ethercat /usr/local/bin/ethercat
$ sudo bash -c "echo KERNEL==\"EtherCAT[0-9]*\", MODE=\"0664\" >
/etc/udev/rules.d/99-EtherCAT.rules"
And don't forget to edit the config file /etc/sysconfig/ethercat to specify
the correct MAC address and the driver module.
After that, you can try to start the EtherCAT master:
$ sudo /etc/init.d/ethercat start
And if you want the ethercat service starts automatically after the system
boots:
$ sudo update-rc.d -f ethercat defaults 90
Regards,
Jun
On 30 October 2014 10:10, wuybit <wuybit at 126.com> wrote:
> Hi Jun,
> Thank you for your help
> After do $ apt-get install linux-headers-2.6.32-5-686, it's OK.
>
> But when I do 'cp etc/sysconfig/ethercat /etc/sysconfig/',
> it comes out that "cp: cannot creat creat rugular file '
> /etc/sysconfig/ethercat': no such file file or directory. I also see
> directory /etc/, there is no sysconfig (Debian 6.04)
> How should I do? Should I make a folder named sysconfig, then do copy or
> else?
>
> Also, executing 'insserv ethercat' command wasn't OK.
>
> I almost do not have linux foundation knowledge.
>
> 2014-10-30
> ------------------------------
> wuybit
> ------------------------------
> *发件人:*Jun Yuan <j.yuan at rtleaders.com>
> *发送时间:*2014-10-30 16:39
> *主题:*Re: Re: [etherlab-users] ./configure error
> *收件人:*"wuybit"<wuybit at 126.com>
> *抄送:*"etherlab-users at etherlab.org"<etherlab-users at etherlab.org>
>
> Hi wuybit,
>
> it seems that linux headers are missing. Try to install the missing
> headers with
>
> $ apt-get install linux-headers-2.6.32-5-686
>
> and do ./configure again.
>
> Regards,
> Jun
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20141030/9cb1c35b/attachment-0004.htm>
More information about the Etherlab-users
mailing list