日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪(fǎng)問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) >

centos 6.5 32bit qemu 环境搭建

發(fā)布時(shí)間:2025/3/19 53 豆豆
生活随笔 收集整理的這篇文章主要介紹了 centos 6.5 32bit qemu 环境搭建 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
安裝centos 6.5 32bit software development distribution


解決ssh連接慢的問(wèn)題
UseDNS no
GSSAPIAuthentication no


securecrt設(shè)置
Options -> Session Options -> Emulation,然后把Terminal類(lèi)型改成xterm,并點(diǎn)中ANSI Color復(fù)選框。
Options -> Session Options -> Appearance,將Character設(shè)成"UTF-8"即可(缺省是"default")。
字體:建議用fixedsys,這個(gè)字體雖然不是最美麗的,但在終端上也是一個(gè)不錯(cuò)選擇,大家都可以接受。


安裝好之后
yum -y install epel-release
yum groupinstall "Development Tools"


安裝python
yum -y install python34
然后會(huì)有2個(gè)版本python
[root@centos ~]# python?
Python 2.6.6 (r266:84292, Nov 22 2013, 12:11:10)?
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>?
[root@centos ~]# python3
Python 3.4.5 (default, Jun? 1 2017, 13:52:14)?
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> qemu cc cannot build an executable
python3會(huì)是py文件默認(rèn)解釋器 (default字樣)


安裝binwalk
cd ~/
git clone https://github.com/ReFirmLabs/binwalk.git
cd binwalk
./setup.py install
發(fā)現(xiàn)默認(rèn)安裝到python2.6上去了。
安裝到python3.4
python3 setup.py install
cd ~/
rm -rf binwalk


編譯一些靜態(tài)庫(kù)(qemu靜態(tài)編譯需要)
wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.27.tar.gz
tar xzvf libgpg-error-1.27.tar.gz
cd libgpg-error-1.27
./configure --enable-static
make
make install?


wget --no-check-certificate https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.8.2.tar.bz2
bunzip2 libgcrypt-1.8.2.tar.bz2?
tar xvf libgcrypt-1.8.2.tar
./configure --enable-static
make
make install?


wget --no-check-certificate https://www.cairographics.org/releases/pixman-0.34.0.tar.gz
tar xzvf pixman-0.34.0.tar.gz
cd pixman-0.34.0
./configure --enable-static
make
make install?


gtk-x11-2.0
我曹怎么還需要這個(gè),放棄了? --disable-gtk,反正只需要命令行的qemu


安裝qemu
yum install zlib-static
yum install glib2-devel libfdt-devel libaio-devel libcap-devel libiscsi-devel zlib-devel pixman-devel
yum install glibc-static libtool
yum install glib2-static glibc-utils glibc glib glib-devel glib-networking
yum install glib*
yum install libgcrypt* 無(wú)效 好像缺靜態(tài)庫(kù)
cd? /opt??
sudo git clone https://github.com/qemu/qemu.git
cd qemu
(可選)git branch -a | grep stable-2
(可選)git checkout stable-2.8
git submodule init??
git submodule update --recursive
export PKG_CONFIG_LIBDIR=/usr/bin/pkg-config
./configure --static --disable-gtk
make -j8
make install

總結(jié)

以上是生活随笔為你收集整理的centos 6.5 32bit qemu 环境搭建的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。