sudo rpm -ivh VirtualBox-5.1-5.1.22_115126_el7-1.x86_64.rpm
chmod +x /home/下载/genymotion-2.9.0-linux_x64.bin
/home/下载/./genymotion-2.9.0-linux_x64.bin -d /usr/local/
/usr/local/genymotion/genymotion
参考自 : https://docs.genymotion.com/Content/01_Get_Started/Installation.
/usr/local/genymotion/player: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/genymotion/libprotobuf.so.9) /usr/local/genymotion/player: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/local/genymotion/libOpenglRender.so.1)
gcc --version
可以查询到,我当前 gcc 版本确实只有 4.8.5, 而在 centos7 下,并没有 gcc 4.9+ 的 rpm 包,因此要手动编译, 这对于 freshman 来说难度略大, 所幸的是我从 github 上看到了傻瓜教程, 完美解决 :sudo yum install libmpc-devel mpfr-devel gmp-devel cd ~/Downloads curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O tar -xvfj gcc-4.9.2.tar.bz2 cd gcc-4.9.2 ./configure --disable-multilib --enable-languages=c,c++ make -j 4 make install
参考自 : https://gist.github.com/craigminihan/b23c06afd9073ec32e0c
LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
[4thub.com/craigminihan/b23c06afd9073ec32e0c