LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-07-2016, 08:05 AM   #1
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Compiling VirtualBox from source


Oracle provides precompiled Virtualbox binaries for some linux distros.

It seems that one of the requirements for compilation is the kde base libraries, qt and all of the dependencies. I am an Xfce user.

Has anyone been able to compile Virtualbox from source for LFS systemd?
 
Old 07-08-2016, 06:54 AM   #2
tnut
NuTyX Founder
 
Registered: May 2016
Location: Switzerland
Distribution: NuTyX
Posts: 136

Rep: Reputation: Disabled
As far as I remember I think it's almost impossible as it require both 32 bits and 64 bits deps. As a starting point, you can "easily" use the precompile binarie package (available in both 32 and 64 bits). For the kernel module, you just need to follow the NuTyX receipt and it will works fine.
 
Old 07-08-2016, 10:04 AM   #3
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Original Poster
Rep: Reputation: 69
I did not realize that virtualbox requires multilib. I don't have multilib LFS, just 64 bit.

Also, I was unaware of a precompiled generic binary. I just installed it and it works. In view of the availability of this binary, compiling it from source seems tedious and unnecessary.
 
Old 07-10-2016, 10:23 AM   #4
Tim Abracadabra
Member
 
Registered: May 2014
Location: USA, Wherever I may Roam
Distribution: debian 9.8 w/GNOME and KDE dual boot w/Win 10.| debian 7.11 w/Xfce, LFS 7.9, + Multi-boot w/Windows7
Posts: 122

Rep: Reputation: Disabled
Glad you got it sorted. If the issue is solved to your satisfaction, Please mark the thread as solved
 
Old 09-19-2016, 01:44 PM   #5
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Quote:
Originally Posted by plasmonics View Post
I did not realize that virtualbox requires multilib. I don't have multilib LFS, just 64 bit.

Also, I was unaware of a precompiled generic binary. I just installed it and it works. In view of the availability of this binary, compiling it from source seems tedious and unnecessary.
Plasmonics, what method did you use?

I'm in the same boat needing to get virtualbox installed on a 64 bit LFS.

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
 
Old 09-19-2016, 04:36 PM   #6
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Original Poster
Rep: Reputation: 69
I ended up not compiling it from source. It looks too difficult. Oracle puts out a generic precompiled binary that works for most linux distros. Just click on this link. It is self extracting and installs under /opt.
 
Old 09-19-2016, 05:47 PM   #7
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Is this the one you installed?
Quote:
All distributions (built on EL5 and therefore do not require recent system libraries) i386 | AMD64
Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
 
Old 09-20-2016, 06:38 AM   #8
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Original Poster
Rep: Reputation: 69
Quote:
Originally Posted by Wayne Sallee View Post
Is this the one you installed?


Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
Yes the amd64 version. It is a self extracting bash archive that you execute as root using
Code:
sh Virtual******.run
 
Old 09-20-2016, 07:21 AM   #9
tnut
NuTyX Founder
 
Registered: May 2016
Location: Switzerland
Distribution: NuTyX
Posts: 136

Rep: Reputation: Disabled
And what about the modules that have to be loaded in your current kernel ?
 
Old 09-20-2016, 07:33 AM   #10
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Original Poster
Rep: Reputation: 69
Quote:
Originally Posted by tnut View Post
And what about the modules that have to be loaded in your current kernel ?
The script builds them using your kernel source tree.
 
Old 09-20-2016, 08:23 AM   #11
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Quote:
Originally Posted by plasmonics View Post
Yes the amd64 version. It is a self extracting bash archive that you execute as root using
Code:
sh Virtual******.run
That's the same one I use for my Mandriva Linux 2010.2 only I use the 32 bit for my Mandriva Linux.
I had thought of using it for LFS, but was unsure if it would work.
Now I know it will work.

Thanks!

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
 
Old 09-20-2016, 08:26 AM   #12
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Have you installed any 32bit operating systems in that virtualbox inside your 46bit-only LFS with working guest additons?

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com

Last edited by Wayne Sallee; 09-20-2016 at 08:29 AM.
 
Old 09-20-2016, 12:37 PM   #13
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Original Poster
Rep: Reputation: 69
Quote:
Originally Posted by Wayne Sallee View Post
Have you installed any 32bit operating systems in that virtualbox inside your 46bit-only LFS with working guest additons?

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
No so far I only tried out 64 bit Ubuntu in the LFS virtualbox. Did you get 64 bit to work? Someone had mentioned in this thread that you need to install multilib in LFS to get 32 bit to work. It sounded too difficult, so I skipped it.

If that is your goal, you might have to compile multilib, then reinstall Virtualbox from that same link.
 
Old 09-20-2016, 01:50 PM   #14
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Quote:
Originally Posted by plasmonics View Post
No so far I only tried out 64 bit Ubuntu in the LFS virtualbox. Did you get 64 bit to work? Someone had mentioned in this thread that you need to install multilib in LFS to get 32 bit to work. It sounded too difficult, so I skipped it.

If that is your goal, you might have to compile multilib, then reinstall Virtualbox from that same link.
It's good to know that it worked for 64 bit guest, but the bigest issue in building virtualbox is the multilib issue. If the run method would take care of that, it would be great.

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
 
Old 09-20-2016, 02:47 PM   #15
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Original Poster
Rep: Reputation: 69
Apparently, it does. I just booted arch linux iso in 32 bit mode and it works. It works for both 64 and 32 bit guests.
 
  


Reply



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
Error compiling virtualbox 4.0.8 - missing .cfi_endproc directive Barx Slackware 2 06-28-2011 03:24 AM
[SOLVED] error compiling virtualbox 3.2.10 on current Barx Slackware 4 12-13-2010 05:46 AM
[SOLVED] 6.6 on virtualbox and gcc compiling problems ukiuki Linux From Scratch 10 05-18-2010 01:56 PM
Compiling a Slackware package from source vs Compiling from source. khronosschoty Slackware 5 09-26-2008 06:09 PM
Compiling Virtualbox Guest Additions paulsiu DamnSmallLinux 5 11-19-2007 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:57 PM.

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