- 4
- 0
- 约2.61千字
- 约 3页
- 2017-08-28 发布于河南
- 举报
Centos安装
安装完centos之后,装yum # yum install apt
#rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm 安装rpmforge包
#yum -y install yum-fastestmirror --#针对centos5.2版本
在 系统—管理—网络 配置网络
3. 没找到eth0 网卡 用 lspci | grep ‘Eth’ 查看,得到网卡为 Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller
名字为install_v.tar.bz2 解压缩之后 直接运行 ./install.sh
网关是 与windows机不一样。
安装python
[root@filerserver python]#cd /home/kidd[root@filerserver python]#wget /tool/python/Python-2.5.4.tar.bz2[root@filerserver python]#tar xjvf Python-2.5.4.tar.bz2[root@filerserver python]#cd Python-2.5.4/[root@filerserver python]#./configure --enable-unicode=ucs4[root@filerserver python]#make[root@filerserver python]#make install
2、在suse10或rhel5(es5)下系统默认已经装了python但版本是2.4.x;本次安装后在shell中输入?#python?会发现显示结果:?# pythonPython 2.4.3 (#1, Dec 11 2006, 11:38:52)?[GCC 4.1.1(Red Hat 4.1.1-43)] on linux2Type help, copyright, credits or license for more information.?版本还是2.4.x的?解决办法:???????? #cd /usr/bin???????? #ll |grep python?? //查看该目录下python???????? #rm -rf python???????? #ln -s PREFIX/Python-2.5.2/python ./python? //PREFIX为你解压python的目录???????????????? #python?????????????????????????????????????? # python???????????????????????? Python 2.5.2 (#1, Dec 11 2006, 11:38:52)????????????????????????? [GCC 4.1.1(Red Hat 4.1.1-43)] on linux2??????????????????????? Type help, copyright, credits or license for more information.???????????????????????? ?3、需要安装 mysql 与 python的驱动
1)将安装包MySQL-python-1.2.3c1.tar.gz解压到 /home/kidd/Python-2.5.4/Lib/site-packages/
2) python ez_setup.py
出现错误:EnvironmentError: mysql_config not found
方法:修改setup_posix.py文件,在26行显示地设定mysql_config:mysql_config.path = /mysql/bin/mysql_config
运行 /home/kidd/Python-2.5.4/python setup.py build
出错 显示:ImportError: No module named setuptools
下载setuptools-0.6c8.tar.gz 然后安装
tar xfvz setuptools-0.6c8.tar.gz?cd setuptools-0.6c8python setup.py buildpython setup.p
原创力文档

文档评论(0)