I have installed the OpenSuse Leap 15.3 SO in Virtual Machine (Virtual Box 6.1). The ISO file is the following:
openSUSE-Leap-15.3-2-DVD-x86_64-Build24.5-Media.iso
The following steps have been the suggested by Te-Wei:
Installing the libs (Git, Kernel-default-devel, gcc, gcc-c++, autoconf, libtool.
Then, the bootstrap script was executed successfully. But not the:
./configure --enable-generic --disable-e100 --disable-8139too --disable-e1000 --disable-r8169
I got the following error:
configure: error: Failed to find Linux sources. Use --with-linux-dir!
The Kernel-default-devel installed version is:
Information for package kernel-default-devel:
---------------------------------------------
Repository : Update repository with updates from SUSE Linux Enterprise 15
Name : kernel-default-devel
Version : 5.3.18-150300.59.54.1
Arch : x86_64
Vendor : SUSE LLC <https://www.suse.com/>
Installed Size : 4.5 MiB
Installed : Yes
Status : up-to-date
Source package : kernel-default-5.3.18-150300.59.54.1.nosrc
Summary : Development files necessary for building kernel modules
Description :
This package contains files necessary for building kernel modules (and
kernel module packages) against the default flavor of the kernel.
the kernel folder should be /usr/src which content is:
linux linux-5.3.18-150300.59.54-obj packages
linux-5.3.18-150300.59.54 linux-obj
The content of linux-5.3.18-150300.59.54 is:
arch crypto fs ipc kernel mm scripts tools
block Documentation include Kbuild lib net security usr
certs drivers init Kconfig Makefile samples sound virt
I haven't been success with any of the following two variants:
./configure --enable-generic --disable-e100 --disable-8139too --disable-e1000 --disable-r8169 --with-linux-dir=/usr/src/linux-5.3.18-150300.59.54/kernel
./configure --enable-generic --disable-e100 --disable-8139too --disable-e1000 --disable-r8169 --with-linux-dir=/usr/src/linux-5.3.18-150300.59.54/kernel
both with the same error:
configure: error: No configured Linux kernel sources in /usr/src/linux-5.3.18-150300.59.54
and
configure: error: No configured Linux kernel sources in /usr/src/linux-5.3.18-150300.59.54/kernel
An email has been sent to the trainer to figure out the issue.
I need to install the following libraries by zypper to install the ethercat:
git, kernel-default-devel, gcc , gcc-c++, autoconf, libtool.
When doing the configure in ethercat repo, I need to do: