Problem during installation of virtualbox-ose

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
AppleMike
Posts: 17
Joined: Sat Jun 13, 2020 10:26 am

Problem during installation of virtualbox-ose

Post by AppleMike »

Hi,

Ghost BSD 20.04 installed on an apple iMac retina 21.5"

Trying to install Virtualbox-ose, it got a long way in, then complained about a missing version of Perl5.30.03? and the install stopped at that point.

Use pkg to install Perl5, it updated Perl to latest version.

I return to the ports folder and do sudo make install clean again, but this time I get an error message about database lock:

pkg-static: Cannot get an exclusive lock on a database, it is locked by another process
*** Error code 75

Stop.
make[6]: stopped in /usr/ports/misc/help2man
*** Error code 1


cant work out who has the lock from ps -aux
AppleMike
Posts: 17
Joined: Sat Jun 13, 2020 10:26 am

Re: Problem during installation of virtualbox-ose

Post by AppleMike »

(thought foe awhile that the problem went away, as after some housework and a meal it seemed to get further, but it still came up with the same error message:

===> Registering installation for py37-sphinxcontrib-applehelp-1.0.2 as automatic
pkg-static: Cannot get an exclusive lock on a database, it is locked by another process
*** Error code 75

Stop.
make[10]: stopped in /usr/ports/textproc/py-sphinxcontrib-applehelp
*** Error code 1

Stop.
make[9]: stopped in /usr/ports/textproc/py-sphinx
*** Error code 1

Stop.
make[8]: stopped in /usr/ports/devel/cmake
*** Error code 1

Stop.
make[7]: stopped in /usr/ports/devel/cmake
*** Error code 1

Stop.
make[6]: stopped in /usr/ports/graphics/openjpeg15
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/graphics/openjpeg15
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/devel/tex-web2c
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/print/tex-basic-engines
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/print/tex-formats
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/emulators/virtualbox-ose
*** Error code 1

Stop.
make: stopped in /usr/ports/emulators/virtualbox-ose

Any ideas what I could try?
AppleMike
Posts: 17
Joined: Sat Jun 13, 2020 10:26 am

Re: Problem during installation of virtualbox-ose

Post by AppleMike »

Nearly there, discovered that sudo was not enough, then discovered that " su - " gives me a "sorry" reponse, but sudo su - seemed to mostly work except for the very end, the error message their looks beyond the linux stuff I can do:

kBuild: Installing /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/out/freebsd.amd64/release/bin/UnattendedTemplates/debian_postinstall.sh
install: warning: Not hard linking, mode differs: 0755, desires 0644
install: src path '/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/src/VBox/Main/UnattendedTemplates/debian_postinstall.sh'
install: dst path '/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/out/freebsd.amd64/release/bin/UnattendedTemplates/debian_postinstall.sh'
kBuild: Installing /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/out/freebsd.amd64/release/bin/UnattendedTemplates/redhat_postinstall.sh
install: warning: Not hard linking, mode differs: 0755, desires 0644
install: src path '/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/src/VBox/Main/UnattendedTemplates/redhat_postinstall.sh'
install: dst path '/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/out/freebsd.amd64/release/bin/UnattendedTemplates/redhat_postinstall.sh'
kBuild: Installing /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/out/freebsd.amd64/release/bin/UnattendedTemplates/win_postinstall.cmd
kBuild: Installing /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/out/freebsd.amd64/release/bin/sdk/bindings/VirtualBox.xidl
kBuild: Installing /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/out/freebsd.amd64/release/bin/sdk/bindings/glue/java/TestVBox.java
kBuild: Installing /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/out/freebsd.amd64/release/bin/sdk/bindings/glue/java/Makefile
kmk: *** No rule to make target `/usr/src/sys/kern/bus_if.m', needed by `/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/out/freebsd.amd64/release/obj/FreeBSDGeneratedKernelHeaders/bus_if.h'. Stop.
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2
*** Error code 2

Stop.
make[1]: stopped in /usr/ports/emulators/virtualbox-ose
*** Error code 1

Stop.
make: stopped in /usr/ports/emulators/virtualbox-ose

Anything I can do to fix this? some members of the household really want Windows, and I have two spare Windows 7 licenses.
AppleMike
Posts: 17
Joined: Sat Jun 13, 2020 10:26 am

Re: Problem during installation of virtualbox-ose

Post by AppleMike »

In the end it was solved by installing from pkg not from ports. Just so that others can know. It took a while, several times it pretended to be installed but wasnt, as there were no executables found using "sudo find . -iname virtualbox 2>/dev/null" there were the installation packages etc, but to get the executable it took several attempts, and I had to do it from the command line to succeed. No proper records kept, so not possible to submit a bug report. I am still learning my way around BSD anyway, so accepting it might just be me making mistakes.
Post Reply