ubuntu libxml2 安装(ubuntu如何安装软件)
各位老铁们,大家好,今天由我来为大家分享ubuntu libxml2 安装,以及ubuntu如何安装软件的相关问题知识,希望对大家有所帮助。如果可以帮助到大家,还望关注收藏下本站,您的支持是我们最大的动力,谢谢大家了哈,下面我们开始吧!
Ubuntu如何安装wine命令
方法一:
Wine(“Wine Is Not an Emulator”的首字母缩写)是一个能够在多种 POSIX-compliant操作系统(诸如 Linux,Mac OSX及 BSD等)上运行 Windows应用的兼容层。 Wine不是像虚拟机或者模拟器一样模仿内部的 Windows逻辑,而是将 Windows API调用翻译成为动态的 POSIX调用,免除了性能和其他一些行为的内存占用,让你能够干净地集合 Windows应用到你的桌面。
下面跟大家分享如何在Ubuntu 14.04上安装Wine
1.添加PPA
sudo add-apt-repository ppa:ubuntu-wine/ppa
2.更新列表
sudo apt-get update
3.安装Wine
sudo apt-get install wine1.7 winetricks
为了避免错误大家可以使用以下命令
sudo apt-get update
方法二:
打开终端执行一下命令,在安装过程中会提示你是否同意协议,点击Enter:
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update sudo apt-get install wine1.5
Ubuntu 13.10编译安装Wine 1.7
先安装依赖的库:
sudo apt-get install flex bison qt4-qmake
apt-get install libfreetype6-dev
apt-get install libjpeg-dev libpng-dev libxslt-dev libxml2-dev
apt-get install libxrender-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install freeglut3-dev
apt-get install prelink
apt-get install libasound2-dev
下载最新的源代码:
Wine 1.7.4发布
解压源代码到当前用户目录下,进入目录:
tar jxvf wine-1.7.4.tar.bz2
cd wine-1.7.4
./configure--enable-win64
creating Makefile rules... done
configure: creating./config.status
config.status: creating Make.rules
config.status: creating Make.tmp
config.status: creating include/config.h
config.status: linking AUTHORS to dlls/shell32/AUTHORS
config.status: linking tools/winewrapper to wine
config.status: linking tools/winewrapper to wine64
config.status: executing include/stamp-h commands
config.status: executing dlls/gdi32/dibdrv commands
config.status: executing dlls/gdi32/enhmfdrv commands
config.status: executing dlls/gdi32/mfdrv commands
config.status: executing dlls/kernel32/nls commands
config.status: executing dlls/user32/resources commands
config.status: executing dlls/wineps.drv/data commands
config.status: executing include/wine commands
config.status: executing Makefile commands
configure: libxcursor development files not found, the Xcursor extension won't be supported.
configure: libxi development files not found, the Xinput extension won't be supported.
configure: libxrandr development files not found, XRandr won't be supported.
configure: libxinerama development files not found, multi-monitor setups won't be supported.
configure: libxcomposite development files not found, Xcomposite won't be supported.
configure: libOSMesa development files not found(or too old), OpenGL rendering in bitmaps won't be supported.
configure: OpenCL development files not found, OpenCL won't be supported.
configure: libdbus development files not found, no dynamic device support.
configure: libgnutls development files not found, no schannel support.
configure: lib(n)curses development files not found, curses won't be supported.
configure: libsane development files not found, scanners won't be supported.
configure: libv4l development files not found.
configure: libgphoto2 development files not found, digital cameras won't be supported.
configure: libgphoto2_port development files not found, digital cameras won't be auto-detected.
configure: liblcms2 development files not found, Color Management won't be supported.
configure: gstreamer-0.10 base plugins development files not found, gstreamer support disabled
configure: OSS sound system found but too old(OSSv4 needed), OSS won't be supported.
configure: libcapi20 development files not found, ISDN won't be supported.
configure: libcups development files not found, CUPS won't be supported.
configure: fontconfig development files not found, fontconfig won't be supported.
configure: libgsm development files not found, gsm 06.10 codec won't be supported.
configure: libtiff development files not found, TIFF won't be supported.
configure: libmpg123 development files not found(or too old), mp3 codec won't be supported.
configure: libopenal development files not found(or too old), OpenAL won't be supported.
configure: libldap(OpenLDAP) development files not found, LDAP won't be supported.
configure: Finished. Do'make' to compile Wine.
现在可以编译了。运行make,等待吧。一个小时候编译完成。然后运行make install
或者可以以非root用户的身份进入tools目录,运行:
./wineinstall
它会自动编译并安装程序,中间会提示输入管理员密码。
安装到了/usr/local/bin目录下
运行命令检查版本:
ine64--version
wine-1.7.4
然后创建一个wine链接,否则很多程序不能用,比如winecfg。
sudo ln-s/usr/local/bin/wine64/usr/local/bin/wine
如何在Ubuntu上搭建Cloud Foundry网站运行环境
Step1 Ubuntu系统更新:
1.$ sudo apt-get update
2.$ sudo apt-get upgrade
3.$ sudo apt-get dist-upgrade
4.$ sudo reboot
Step2安装curl和 git。curl用于数据传输,git用于版本管理
1.$ sudo apt-get install curl
2.$ sudo apt-get install git-core
Step3为git配置用户名和电邮。须与在 上的用户名及注册邮箱一致。替换红色内容,保留引号。
1.$ git config--global user.name"YOUR_USER_NAME"
2.$ git config--global user.email"YOUR_USER_NAME"
(可用以下命令检查配置是否正确:$ git config-l)
Step4生成SSH公钥(参考 )。该公钥确保在本机与Github间建立安全连接
1.$ ssh-keygen-t rsa-C"YOUR_USER_NAME"
会提示设置一个passphrase。这个passphrase用于每次建立ssh连接时进行身份验证,不必与Github帐户的密码相同,但一定不能遗忘,否则将不能建立ssh连接。
2.$ cat~/.ssh/id_rsa.pub
复制id_rsa.pub文件内容(即刚才所生成的SSH公钥),登陆 Github网站并进入Account Settings->SSH Keys->Add SSH Key,粘贴至Key区域。
要确保复制内容与公钥的文字完全一致,即使多复制一个空格或空行都有可能出问题。也可按照参考链接中的方法使用 xclip。
3.测试能否成功建立ssh连接
$ ssh-T git@github.com
会弹出一个提示框,要求输入密码。输入上面所设定的passphrase即可。
正确输入passphrase后,若在终端窗口中看到"Hi YOUR_USER_NAME! You've successfully authenticated, but GitHub does not provide shell access.",说明一切正常,可以从github上`git clone`代码了。(这是我自己的测试过程,与Github参考链接中稍有出入)
Setp5安装ruby:
1.安装RVM(Ruby Version Manager)并添加环境变量
$ bash-s stable<<(curl-s )
$ nano~/.bashrc
在末尾添加新行: [[-s"$HOME/.rvm/scripts/rvm" ]]&&."$HOME/.rvm/scripts/rvm"
$ source.bashrc
(重新载入.bashrc以使改变生效)
$ type rvm|head-1
(若提示"rvm is a function",说明rvm已正确安装)
2.安装ruby所需的依赖包
$ sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev libtool
$ sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev
3.使用rvm安装ruby1.9.2,并将其作为默认的ruby版本
$ rvm install 1.9.2
$ rvm--default use 1.9.2
4.安装rails
$ gem install rails
至此,ruby环境已安装就绪。为了在本地运行Cloud Foundry网站,还需进行以下准备工作。
Step6使用gerrit:
1.分别注册并登陆 reviews.cloudfoundry.org和 。前者是开源的代码库,而后者只对内部开放。
在 Settings->Profile中设定Username,在 Settings->Contact Information中单击 Register New Email添加新电邮地址,Username和新电邮地址均与Step3中一致。在SSH Public Keys中添加Step4中生成的公钥,添加方法同Step4(2)。
2.安装gerrit辅助脚本。用于优化gerrit使用中的一些小问题。
$ gem install gerrit-cli
3.获取tools代码库并为其添加环境变量(~/.bashrc文件)。
$ git clone git@github.com:vmware-ac/tools.git
添加tools环境变量。 Example: PATH=$HOME/tools/gerrit:$HOME/local/node/bin:/usr/local/mysql/bin..
4.获取cloudfoundry-website代码(非public)。将红色区域替换为你自己的用户名。代码将保存在~/cloudfoundry-websites
$ gerrit-clone ssh://YOUR_USER_NAME@cloudfoundry-codereview.qa.mozycloud.com:29418/cloudfoundry-websites
Step7安装并配置redis。cloudfoundry网站运行需要调用redis库。
1.下载并安装
$ cd/tmp
$ wget
$ tar-zxf redis-2.2.4.tar.gz
$ cd redis-2.2.4
$ make
$ sudo make install
2.配置初始化脚本:
$ wget
$ wget
$ sudo mv redis-server/etc/init.d/redis-server
$ sudo chmod+x/etc/init.d/redis-server
$ sudo mv redis.conf/etc/redis.conf
3.初始化用户和日志路径
$ sudo useradd redis
$ sudo mkdir-p/var/lib/redis
$ sudo mkdir-p/var/log/redis
$ sudo chown redis.redis/var/lib/redis
$ sudo chown redis.redis/var/log/redis
4.启动redis server(每次运行cloudfoundry网站前都需要运行redis server)
$ sudo/etc/init.d/redis-server start
Step8在本地运行Cloud Foundry网站。redis server必须处于运行状态中。(参考$HOME/cloudfoundry-websites/www/README.md文件)
1.$ cd~/cloudfoundry-websites/www
第一次进入此路径,终端窗口会提示:
Gemset'developers' does not exist,'rvm gemset create developers' first, or append'--create'.
运行$ rvm gemset create developers,然后离开并重新进入~/cloudfoundry-websites/www
2.$ bundle install
3.$ ruby website.rb
4.打开浏览器,输入网址 127.0.0.1:4567
这样就可以看到运行于本机的Cloud Foundry英文版网站首页了。如果想在本地运行中文版网站,只需将www改为cn重复Step8即可。
如何在ubuntu中安装makefile文件,求详细步骤!
如果是需要编译的环境,推荐安装"build essential"包,
#sudo apt-get install"build-essential"
在用./configure,make, makeinstall,方法安装软件是,经常会发生发生各种错误,而导致无法生成 makefile文件。现在我把我安装过程中遇到的问题以及解决办法写下来,希望对大家有点帮助。
以我安装 pidgin-2.0.0为例
#./configure出现错误:
configure: error: C compiler cannot create executables
按照错误提示安装缺少的包
#sudo apt-get install libc6-dev
再次
#./configure
出现错误
checking for GLIB... no
no
configure: error:
You must have the GLib 2.0 development headers installed to build.
根据错误提示,用新得立搜索 GLib 2.0或者用命令
#sudo apt-cache search GLib 2.0
发现有个包 libglib2.0-dev- Development files for the GLib library。
选择安装;
#sudo apt-get install libglib2.0-dev
这里原文为libglib2.0-0-dev,似乎有误。
#./configure#又出现错误
checking for X... no
checking for GTK... no
no
configure: error:
You must have the GTK+ 2.0 development headers installed to compile Pidgin.
If you only want to build Finch then specify--disable-gtkui when running configure.
用如上同样的方法查找到缺少的包并安装
sudo apt-get install libgtkmm2.0-dev
./configure出现错误
checking for LIBXML... no
no
configure: error:
You must have libxml2>= 2.6.0 development headers installed to build.
于是安装
sudo apt-get install libxml2-dev
经过上面包的安装,在次./configure没有再出现错误,这次成功的生成了makefile文件。
然后执行:
#make
#make install
成功安装软件。