Ubuntu 12.04安装nodejs折腾记
2013-06-26 11:43
369 查看
以前在centos上安装,ubuntu安装,从来没有像这次这么折腾,可能是刚来工作单位的原因吧....
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz[/code]
解压、编译tar xzvf Python-2.7.3 cd Python-2.7.3 ./configure make && make install首先下载node最新的源码包wget http://nodejs.org/dist/v0.8.11/node-v0.8.11.tar.gz解压,然后开始编译tar -zxf node-v0.8.11.tar.gz cd node-v0.8.11 ./configure总之出现了一个以前没有出现的错误,叫ImportError: No module named bz2终于让我发现了答案:[/code]This is related to issue #2316I followed the README for recent node versions stating that python 2.6 or 2.7 is needed, and then I spent quite a long time before succeeding to compile Python with bz2Maybe it's specific to my environment and I don't install unix stuff everyday but I think the README desserves at least a mention in case of python/bz2 installation problem and at least links to these two bugsIn my case, it was solved following this :http://stackoverflow.com/questions/812781/pythons-bz2-module-not-compiled-by-default http://www.kelvinwong.ca/2010/08/02/python-2-7-on-dreamhost/But both methods are not totally correct (in my case at least), the correct sequence is more something like (sorry for the imprecision but I spent enough time on this, probably some people can correct easily if needed) :wget http://bzip.org/1.0.6/bzip2-1.0.6.tar.gz tar xpzf bzip2-1.0.6.tar.gz cd bzip2-1.0.6 make -f Makefile_libbz2_so make make install PREFIX=/usr/local cp ./libbz2.so.1.0.6 /usr/local/libcd Python-2.7.3 ./configure --prefix=/usr/local make install
相关文章推荐
- ubuntu 12.04 Server 上安装 nodejs, MongoDB
- Angularjs学习---angularjs环境搭建,ubuntu 12.04下安装nodejs、npm和karma
- 我折腾的ubuntu X64 安装nodejs
- 【已解决】Ubuntu 12.04 LTS Source安装nodejs时出现"bash ./configure permission denied"
- Ubuntu 12.04 LTS 64bit安装nodejs-express-npm-jade 我尝试失败不知道什么原因。
- ubuntu 12.04 安装eclipse 折腾了快一天了。
- Ubuntu 12.04 安装最新版本NodeJS
- Ubuntu 12.04中文输入法的安装
- Ubuntu 12.04安装virtualbox失败解决
- Windows 7硬盘安装CentOS 6.4 双系统 (WIN7下硬盘安装Linux(Fedora 16,CentOS 6.2,Ubuntu 12.04))
- ubuntu 12.04 安装ubuntu-Tweak
- Ubuntu16.04安装最新版nodejs(2018)
- 【折腾ubuntu】Ubuntu12.04安装windows版本的福昕阅读器
- DiskSim 4.0 with DIXtrac 在 ubuntu 12.04 32位 下的安装
- vmware中安装ubuntu 12.04 LTS
- U盘安装Ubuntu 12.04成功后系统无法启动的原因及解决办法
- ubuntu 14.10 安装 nodejs 和 npm
- Ubuntu 12.04 mysql 源码安装--mysql.5.5.x
- 使用U盘安装ubuntu 12.04(使用大白菜u盘启动工具)
- ubuntu 12.04安装vmtools 问题解决