LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-01-2015, 01:46 PM   #1
StevenXL
Member
 
Registered: Jan 2014
Posts: 81

Rep: Reputation: Disabled
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


I have installed the libvncserver package located here:
http://slackbuilds.org/mirror/slackw...1/slackware/l/

But that didn't help either. I'm a bit stuck as to what to do next. Any help would be awesome. Thanks!
 
Old 02-01-2015, 01:59 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
I suppose you are trying to install virtualbox on a clean slackware64-14.1: as you can read on the SBo page, that won't work

http://slackbuilds.org/repository/14...em/virtualbox/

you will need a full multilib system

http://www.slackware.com/~alien/multilib/

(remove the 32bit library you installed before going multilib)

and remember that, beside the fact that this kind of installation might work, it's not officially supported by SBo.
 
Old 02-01-2015, 02:32 PM   #3
StevenXL
Member
 
Registered: Jan 2014
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
I suppose you are trying to install virtualbox on a clean slackware64-14.1: as you can read on the SBo page, that won't work

http://slackbuilds.org/repository/14...em/virtualbox/

you will need a full multilib system

http://www.slackware.com/~alien/multilib/

(remove the 32bit library you installed before going multilib)

and remember that, beside the fact that this kind of installation might work, it's not officially supported by SBo.
I am using a full multi-lib system.
 
Old 02-01-2015, 03:03 PM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
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
 
Old 02-02-2015, 08:23 PM   #5
StevenXL
Member
 
Registered: Jan 2014
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
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.

Thanks again!
 
Old 02-05-2015, 08:16 PM   #6
coldbeer
Member
 
Registered: May 2006
Location: Orion–Cygnus Arm, MWG
Distribution: Slackware, Ubuntu
Posts: 249

Rep: Reputation: 130Reputation: 130
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$
 
Old 02-06-2015, 07:19 AM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I don't like using installers, because you don't always know what they do to the system. I just use virtualbox from Slackbuilds.org.
 
Old 02-06-2015, 08:21 AM   #8
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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.

Hope this helps some.
 
Old 02-06-2015, 11:26 AM   #9
StevenXL
Member
 
Registered: Jan 2014
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by coldbeer View Post
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.
 
Old 02-06-2015, 02:02 PM   #10
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
When I needed to do all this I searched LQ and found this post.

thanks again tronayne
 
  


Reply

Tags
virtual box



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg, no screens found; no devices found (after Virtualbox install) Archytas Linux - General 6 03-06-2013 03:41 PM
LXer: LibVNCServer 0.9.9 Brings IPv6, TurboVNC Encoder LXer Syndicated Linux News 0 05-05-2012 07:20 PM
XEN installation failing with hg command not found priyophan Linux - Server 1 04-25-2009 01:59 PM
libvncserver paul_mat Linux - Newbie 5 12-14-2004 03:54 PM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration