|
From: Rok M. <rok...@gm...> - 2019-01-09 19:49:10
|
On debian, I would advise you to use the provided build scripts (debian subfolder in each component's folder) to build .deb packages and install those: git clone git://git.code.sf.net/p/cdemu/code cdemu-code cd cdemu-code # VHBA cd vhba apt-get build-dep . # Run as root; should install all build dependencies dpkg-buildpackage -b -tc -uc # Builds the package cd .. apt install ./vhba-dkms_20170610-1_all.deb # Run as root to install the package modinfo vhba # Check if module was automatically built for the current kernel # libmirage cd libmirage apt-get build-dep . # Run as root; should install all build dependencies dpkg-buildpackage -b -tc -uc # Builds the package cd .. apt install ./libmirage11_3.2.0-1_amd64.deb ./libmirage11-dev_3.2.0-1_amd64.deb ./gir1.2-mirage-3.2_3.2.0-1_amd64.deb # Install libMirage before trying to build cdemu-daemon package # Same steps for cdemu-daemon, cdemu-client, gcdemu: same The .deb packages provide additional configuration for setting permissions and module auto-load, which you will be missing if you do a manual build from source. And incorrectly set permssions on VHBA control device will be one of the reasons for cdemu-daemon to refuse to start. Best regards, Rok On 9. 01. 19 20:20, lie...@gr... wrote: > I compiled and installed vhba from source and it completed and > installed without any error messages or dependency problems. > Clearly the module was built and installed, but the installer had no > clue seemingly where to install it as it is not found in the usual > place for modules. > > I am using Debian Stretch and could not find any of this in the > repositories. that is why I compiled from scratch. > Here follows the install script I wrote. It installs everything > without error. > > #!/bin/bash > #Status everything works and installed except VHBA doesnt install > correctly > #modprobe vhba doesnt work Contact usersgroup. > > > git clone git://git.code.sf.net/p/cdemu/code cdemu-code > cd cdemu-code > cd gcdemu > cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release > make > make install > > #Lib mirage > cd ../../ > mkdir temp > cp *bz2 temp > cd temp > bunzip2 libmirage-3.2.0.tar.bz2 > tar -xvf *tar > rm *tar > cd libmirage* > cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release > make > make install > > #Lib ao > cd ../../ > rm -r -f temp > mkdir temp > cp libao*gz temp > cd temp > gunzip libao-1.2.0.tar.gz > tar -xvf *tar > rm *tar > cd * > ./configure > make > make install > > #Module vhba > cd ../../ > rm -r -f temp > mkdir temp > cp vhba*2 temp > cd temp > bunzip2 vhba-module*.bz2 > tar -xvf *tar > rm *tar > cd * > make > make install > > cd ../../cdemu-code/cdemu-daemon > cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release > make > make install > > cd ../../cdemu-code/cdemu-client > cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release > make > make install > > > > > On 2019-01-09 05:07, Rok Mandeljc wrote: >> Hello, >> >> what distribution are you using? If there is a packaged version >> available for it, you will probably have less problems with that than >> with installing from source (because packages tend to also set up >> other important details, such as daemon autostart, automatic builds of >> vhba module on kernel update, loading of module at start, and proper >> vhba control device permissions) >> >> Otherwise, keep in mind that gcdemu and cdemu(-client) are only >> clients (frontends). You still need to build and install cdemu-daemon >> (backend), and you need to build and install vhba-module (the kernel >> part). >> >> If you get "module does not exist" error when trying to modprobe vhba, >> then the module is not built/installed. Either you need to build it >> yourself, or if you installed packaged vhba that uses dkms or akmods, >> you need to check why the automatic build failed (e.g., missing kernel >> development package). >> >> Best regards, >> Rok >> >> > > > > _______________________________________________ > Cdemu-devel mailing list > Cde...@li... > https://lists.sourceforge.net/lists/listinfo/cdemu-devel |