Virtualbox Installation Failing - libvncserver not found at -lvncserver or libvncs
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Virtualbox Installation Failing - libvncserver not found at -lvncserver or libvncs
Hi Everyone,
I am trying to install virtualbox via slackbuilds.org on my slackware machine but failing to do so.
I have installed acpica, virtualbox-kernel, virtualbox-kernel-addons.
Once I get to virtualbox itself, however, I get the following error:
Checking for libvncserver:
libvncserver not found at -lvncserver or libvncserver headers not found
Check the file /tmp/SBo/VirtualBox-4.3.20/configure.log for detailed error information.
When I check the configure.log file, here is the relevant section:
***** Checking libvncserver *****
compiling the following source file:
#include <cstdio>
#include <rfb/rfbconfig.h>
extern "C" int main()
{
const char* v=LIBVNCSERVER_VERSION;
unsigned int major = 0, minor = 0, micro = 0;
for (; *v !='.' && *v != '\0'; v++) major = major*10 + *v-'0';
if (*v == '.') v++;
for (; *v !='.' && *v != '\0'; v++) minor = minor*10 + *v-'0';
if (*v == '.') v++;
for (; *v !='.' && *v != '\0'; v++) micro = micro*10 + *v-'0';
printf("found version %s", LIBVNCSERVER_PACKAGE_VERSION);
if (major*10000 + minor*100 + micro >= 900)
{
printf(", OK.\n");
return 0;
}
else
{
printf(", expected version 0.9 or higher\n");
return 1;
}
}
using the following command line:
g++ -g -O -Wall -o /tmp/SBo/VirtualBox-4.3.20/.tmp_out /tmp/SBo/VirtualBox-4.3.20/.tmp_src.cc "-lvncserver "
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libvncserver.so when searching for -lvncserver
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -lvncserver
collect2: error: ld returned 1 exit status
is your slackware64-14.1 installation full too?
if you have a normal setup of slackpkg and you run
Code:
slackpkg install slackware64
does it propose to install some packages?
I'm telling this because I just tried to build virtualbox on a slackware64-14.1 multilib virtual machine ad all went fine, so I'm thinking you might miss something, namely the libvncserver 64bit package.
this is what I have in my configure.log
Code:
***** Checking libvncserver *****
compiling the following source file:
#include <cstdio>
#include <rfb/rfbconfig.h>
extern "C" int main()
{
const char* v=LIBVNCSERVER_VERSION;
unsigned int major = 0, minor = 0, micro = 0;
for (; *v !='.' && *v != '\0'; v++) major = major*10 + *v-'0';
if (*v == '.') v++;
for (; *v !='.' && *v != '\0'; v++) minor = minor*10 + *v-'0';
if (*v == '.') v++;
for (; *v !='.' && *v != '\0'; v++) micro = micro*10 + *v-'0';
printf("found version %s", LIBVNCSERVER_PACKAGE_VERSION);
if (major*10000 + minor*100 + micro >= 900)
{
printf(", OK.\n");
return 0;
}
else
{
printf(", expected version 0.9 or higher\n");
return 1;
}
}
using the following command line:
g++ -g -O -Wall -o /tmp/SBo/VirtualBox-4.3.20/.tmp_out /tmp/SBo/VirtualBox-4.3.20/.tmp_src.cc "-lvncserver "
executing the binary
found version 0.9.9, OK.
note that I don't have the 32bit libvncserver package installed, but just the 64bit one
Code:
# ls -la /var/log/packages/libvncserver*
-rw-r--r-- 1 root root 1430 Jan 19 11:05 /var/log/packages/libvncserver-0.9.9-x86_64-2
is your slackware64-14.1 installation full too?
if you have a normal setup of slackpkg and you run
Code:
slackpkg install slackware64
does it propose to install some packages?
I'm telling this because I just tried to build virtualbox on a slackware64-14.1 multilib virtual machine ad all went fine, so I'm thinking you might miss something, namely the libvncserver 64bit package.
this is what I have in my configure.log
Code:
***** Checking libvncserver *****
compiling the following source file:
#include <cstdio>
#include <rfb/rfbconfig.h>
extern "C" int main()
{
const char* v=LIBVNCSERVER_VERSION;
unsigned int major = 0, minor = 0, micro = 0;
for (; *v !='.' && *v != '\0'; v++) major = major*10 + *v-'0';
if (*v == '.') v++;
for (; *v !='.' && *v != '\0'; v++) minor = minor*10 + *v-'0';
if (*v == '.') v++;
for (; *v !='.' && *v != '\0'; v++) micro = micro*10 + *v-'0';
printf("found version %s", LIBVNCSERVER_PACKAGE_VERSION);
if (major*10000 + minor*100 + micro >= 900)
{
printf(", OK.\n");
return 0;
}
else
{
printf(", expected version 0.9 or higher\n");
return 1;
}
}
using the following command line:
g++ -g -O -Wall -o /tmp/SBo/VirtualBox-4.3.20/.tmp_out /tmp/SBo/VirtualBox-4.3.20/.tmp_src.cc "-lvncserver "
executing the binary
found version 0.9.9, OK.
note that I don't have the 32bit libvncserver package installed, but just the 64bit one
Code:
# ls -la /var/log/packages/libvncserver*
-rw-r--r-- 1 root root 1430 Jan 19 11:05 /var/log/packages/libvncserver-0.9.9-x86_64-2
Ponce, thanks for your continued help on this.
When I type in slackpkg install slackware64, I unfortunately get an error that says slackpkg: command not found.
I got confused, until I realized that I am actually using salix. Sorry to waste your time here. I should go post on their forums.
For what its worth I have slackware 14.1 with multilib and I merely downloaded virtual box from oracle and run the install.
Just pick the "All Distributions"-"AMD64" from the Builds list.
Code:
bash-4.2$ sudo sh ./VirtualBox-4.3.12-93733-Linux_amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation............
VirtualBox Version 4.3.12 r93733 (2014-05-16T13:19:41Z) installer
Installing VirtualBox to /opt/VirtualBox
Python found: python, installing bindings...
Building the VirtualBox kernel modules
VirtualBox has been installed successfully.
You will find useful information about using VirtualBox in the user manual
/opt/VirtualBox/UserManual.pdf
and in the user FAQ
http://www.virtualbox.org/wiki/User_FAQ
We hope that you enjoy using VirtualBox.
bash-4.2$
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
I have always used the installer from Sun, now from Oracle, and have never had any problems with VirtualBox installation (or, for that matter, with reliability).
One benefit of the installer is that VirtualBox is installed in /opt, not in the root tree.
Too, if you need or wish to uninstall VirtualBox (completely), simply
Code:
su -
<root password>
/opt/VirtualBox/uninstall.sh
and it's gone. Your virtual machine(s) space is not disturbed in that process.
Also note that that is no need whatsoever for Multilib to install and use VirtualBox on a 64-bit system.
For what its worth I have slackware 14.1 with multilib and I merely downloaded virtual box from oracle and run the install.
Just pick the "All Distributions"-"AMD64" from the Builds list.
Code:
bash-4.2$ sudo sh ./VirtualBox-4.3.12-93733-Linux_amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation............
VirtualBox Version 4.3.12 r93733 (2014-05-16T13:19:41Z) installer
Installing VirtualBox to /opt/VirtualBox
Python found: python, installing bindings...
Building the VirtualBox kernel modules
VirtualBox has been installed successfully.
You will find useful information about using VirtualBox in the user manual
/opt/VirtualBox/UserManual.pdf
and in the user FAQ
http://www.virtualbox.org/wiki/User_FAQ
We hope that you enjoy using VirtualBox.
bash-4.2$
Thanks coldbeer. I used that method to install it and that was that. Very simple. Wish I had known about it sooner.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.