码迷,mamicode.com
首页 > 其他好文 > 详细

ub编译vbox

时间:2020-04-04 11:26:31      阅读:87      评论:0      收藏:0      [点我收藏+]

标签:bpa   http   art   重新安装   tar   extras   ++   date   upgrade   

sudo passwd root

cd /usr/share/lightdm/lightdm.conf.d/
gedit 50-unity-greeter.conf

gedit /root/.profile

修改 tty -s && mesg n || true

//使源生效
sudo apt-get update
//修复损坏的软件包,尝试卸载出错的包,重新安装正确版本的。
sudo apt-get -f install
//更新软件
sudo apt-get upgrade

https://blog.csdn.net/erinli1998/article/details/89442060
//注意选对源

for i in python-pip \
libvpx-dev libvpx3 qt4-default qt4-linguist-tools \
nasm yasm \
qt5-default libqt5x11extras5 libqt5x11extras5-dev qttools5-dev-tools \
gcc g++ bcc iasl xsltproc uuid-dev zlib1g-dev libidl-dev \
libsdl1.2-dev libxcursor-dev libasound2-dev libstdc++5 \
libhal-dev libpulse-dev libxml2-dev libxslt1-dev \
python-dev libqt4-dev qt4-dev-tools libcap-dev \
libxmu-dev mesa-common-dev libglu1-mesa-dev \
linux-kernel-headers libcurl4-openssl-dev libpam0g-dev \
libxrandr-dev libxinerama-dev libqt4-opengl-dev makeself \
libdevmapper-dev default-jdk python-central \
texlive-latex-base \
texlive-latex-extra texlive-latex-recommended \
texlive-fonts-extra texlive-fonts-recommended \
ia32-libs libc6-dev-i386 lib32gcc1 gcc-multilib \
lib32stdc++6 g++-multilib ;
do
apt-get install -y $i
done

for i in python-pip \
libvpx-dev libvpx3 qt4-default qt4-linguist-tools \
nasm yasm \
bcc iasl xsltproc uuid-dev zlib1g-dev libidl-dev \
libsdl1.2-dev libxcursor-dev libasound2-dev libstdc++5 \
libhal-dev libpulse-dev libxml2-dev libxslt1-dev \
python-dev libqt4-dev qt4-dev-tools libcap-dev \
libxmu-dev mesa-common-dev libglu1-mesa-dev \
linux-kernel-headers libcurl4-openssl-dev libpam0g-dev \
libxrandr-dev libxinerama-dev libqt4-opengl-dev makeself \
libdevmapper-dev default-jdk python-central \
texlive-latex-base \
texlive-latex-extra texlive-latex-recommended \
texlive-fonts-extra texlive-fonts-recommended \
ia32-libs libc6-dev-i386 lib32gcc1 gcc-multilib \
lib32stdc++6 g++-multilib ;
do
apt-get install -y $i
done

for i in libidl2 linux-headers texlive-most sdl sdl_ttf \
lib32-glibc lib32-libstdc++5 lib32-gcc-libs gcc-multilib
do
apt-get install -y $i
done

cd /opt
wget -c http://download.virtualbox.org/virtualbox/5.1.14/VirtualBox-5.1.14.tar.bz2
tar jxf VirtualBox-5.1.14.tar.bz2
cd VirtualBox-5.1.14


wget -c http://download.virtualbox.org/virtualbox/5.0.22/VirtualBox-5.0.22.tar.bz2
tar jxf VirtualBox-5.0.22.tar.bz2
cd /opt/VirtualBox-5.0.22

wget -c http://download.virtualbox.org/virtualbox/5.2.2/VirtualBox-5.2.2.tar.bz2
tar jxf VirtualBox-5.2.2.tar.bz2
cd VirtualBox-5.2.2

wget -c http://download.qt.io/archive/qt/5.9/5.9.0/qt-opensource-linux-x64-5.9.0.run

wget -c http://download.virtualbox.org/virtualbox/6.1.0_RC1/VirtualBox-6.1.0_RC1.tar.bz2
tar jxf VirtualBox-6.1.0_RC1.tar.bz2
cd VirtualBox-6.1.0_RC1
(apt-get install libopus-dev)6.1.0

apt-get install libssl-dev
sudo apt-get install libpng-dev

chmod +x qt-opensource-linux-x64-5.9.0.run


./configure --with-qt-dir=/opt/Qt5.9.0/

./configure --disable-java
source ./env.sh
kmk all

for i in qt5-default libqt5x11extras5 libqt5x11extras5-dev qttools5-dev-tools;
do
apt-get install -y $i
done

for i in ia32-libs libc6-dev-i386 lib32gcc1 lib32stdc++6/
do
apt-get install -y $i
done

for i in qt5-default libqt5x11extras5 libqt5x11extras5-dev qttools5-dev-tools;
do
sudo apt-get --purge remove -y $i
done

https://blog.csdn.net/luckywang1103/article/details/84251520
-----------------------------gcc 4.9.4
https://www.cnblogs.com/darkknightzh/p/6194031.html

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt-get update
sudo apt-get install gcc-4.9
sudo apt-get install g++-4.9

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
---------------------------------------
cd /usr/bin
sudo rm gcc
sudo ln -s gcc-4.9 gcc
sudo rm g++
sudo ln -s g++-4.9 g++

/usr/lib/gcc/x86_64-linux-gnu/4.9

apt-get install lib32ncurses5
apt-get install lib32z1

ln -s libX11.so.6 /usr/lib32/libX11.so
ln -s libXTrap.so.6 /usr/lib32/libXTrap.so
ln -s libXt.so.6 /usr/lib32/libXt.so
ln -s libXtst.so.6 /usr/lib32/libXtst.so
ln -s libXmu.so.6 /usr/lib32/libXmu.so
ln -s libXext.so.6 /usr/lib32/libXext.so

https://blog.csdn.net/mark20170902/article/details/51671477
cannot find -lgcc
复制 libgcc.so到指定目录。。。

sudo ln -s libstdc++.so.6 libstdc++.so

chmod 777 /usr/lib/gcc
sudo rm -rf /usr/lib/gcc

chmod 777 /usr/bin/X11/gcc
sudo rm -rf /usr/bin/X11/gcc

chmod 777 /usr/share/man/man1/gcc.1.gz
sudo rm -rf /usr/share/man/man1/gcc.1.gz

ub编译vbox

标签:bpa   http   art   重新安装   tar   extras   ++   date   upgrade   

原文地址:https://www.cnblogs.com/lvcha/p/12630633.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!