标签: centos5

如何在CENTOS 5.5上安装git?

如何在CENTOS 5.5机器上安装git?我试图从yum安装它,但得到了msg.

root@host [~]# sudo yum install git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: centos.mirrors.tds.net
 * base: mirror.ubiquityservers.com
 * extras: mirrors.serveraxis.net
 * updates: pubmirrors.reflected.net
addons                                                   |  951 B     00:00
base                                                     | 2.1 kB     00:00
extras                                                   | 2.1 kB     00:00
updates                                                  | 1.9 kB     00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package git available.
Nothing to do
root@host [~]#
Run Code Online (Sandbox Code Playgroud)

git centos5

70
推荐指数
7
解决办法
10万
查看次数

ImportError:没有名为psycopg2的模块

在安装openerp 6的过程时,我想用这个命令生成一个配置文件,

cd/home/openerp/openerp-server/bin /

./openerp-server.py -s --stop-after-init -c /home/openerp/openerp-server.cfg

但它总是显示出一个信息

ImportError: No module named psycopg2

当我检查psycopg2包时,它已经安装好,

python-psycopg2-2.4.5-1.rhel5.x86_64已安装和最新版本

没事做

这有什么问题?我的服务器是centos,我安装了python 2.6.7.

真的需要你的帮助..

python centos5 centos odoo

59
推荐指数
9
解决办法
12万
查看次数

nohup:忽略输入并将输出附加到'nohup.out'

我想通过nohup.php启动我的服务器,但命令没有运行并显示以下错误

nohup:忽略输入并将输出附加到'nohup.out'

我正在使用ssh通过腻子,这就是我正在做的事情

nohup php server1.php

php linux centos5 centos centos6

44
推荐指数
1
解决办法
7万
查看次数

Setup.py:在CentOS上使用Python2.6安装lxml

我在CentOS 5.4上安装了Python 2.6.6,

[@SC-055 lxml-2.3beta1]$ python
Python 2.6.6 (r266:84292, Jan  4 2011, 09:49:55) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
Run Code Online (Sandbox Code Playgroud)

我想使用lxml模块,但是从源代码构建失败:

src/lxml/lxml.etree.c:157929: error: ‘xsltLibxsltVersion’ undeclared (first use in this function)
src/lxml/lxml.etree.c:157941: error: ‘__pyx_v_4lxml_5etree_XSLT_DOC_DEFAULT_LOADER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:157941: error: ‘xsltDocDefaultLoader’ undeclared (first use in this function)
src/lxml/lxml.etree.c:157950: error: ‘__pyx_f_4lxml_5etree__xslt_doc_loader’ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

python lxml centos5 python-2.6 python-import

32
推荐指数
1
解决办法
3万
查看次数

Linux - Yum安装GCC - 缺少内核头文件

当我尝试在我的linux(centos)上安装GCC时,它又丢失了

来自更新的glibc-headers-2.5-58.el5_6.4.x86_64解决了问题 - >缺少依赖性:包glibc-headers-2.5- 58.el5_6.4.x86_64(更新)glibc-headers需要内核头文件来自更新的-2.5-58.el5_6.4.x86_64解决了问题 - >

缺少依赖性:包glibc-headers-2.5- 58.el5_6.4.x86_64(更新)需要kernel-headers> = 2.2.1

错误:缺少依赖性:包glibc-headers-2.5-58.el5_6.4.x86_64(更新)需要kernel-headers> = 2.2.1

错误:缺少依赖性:包glibc-headers-2.5-58.el5_6.4.x86_64(更新)需要kernel-headers


我尝试yum install kernel-header&kernel-devel但是回过头来:

没有包内核头可用.

有什么建议?

linux gcc centos5 yum centos6

32
推荐指数
2
解决办法
9万
查看次数

SET GLOBAL max_allowed_pa​​cket不起作用

我发现了如何使用更改max_allowed_packetMySQL中的默认值SET GLOBAL.但是,每次使用此命令时,默认值都保持不变!我使用了这些命令:

mysql --user=root --password=mypass
mysql> SET GLOBAL max_allowed_packet=32*1024*1024;
Query OK, 0 rows affected (0.00 secs)
mysql> SHOW VARIABLES max_allowed_packet;
Run Code Online (Sandbox Code Playgroud)

然后结果是max_allowed_pa​​cket = 1048576.我错过了什么?

mysql linux centos5

25
推荐指数
3
解决办法
6万
查看次数

在CentOS 5.5上没有定义rpmbuild%{dist}?

我正在尝试%{dist}在我的RPM规范文件中使用标记来提供Fedora Core(例如fc12),CentOS 5(例如el5)和亚马逊的Linux AMI 之间的特定于分发的依赖关系:

Release: %_svn_revision%{?dist}
Run Code Online (Sandbox Code Playgroud)

# Depencencies
%{?rhel:Requires: ...}
%{?fedora:Requires: ...}
Run Code Online (Sandbox Code Playgroud)

不幸的是,%{dist}似乎没有在CentOS 5.5中定义,并且我没有找到与CentOS 5.5匹配的特定于发行版的条件(我认为el5匹配,但似乎没有).这张票据报告了%{dist}2008年CentOS 的遗失,但自2009年以来一直没有更新.

我如何%{dist}在CentOS中定义以及我应该使用什么条件来匹配CentOS 5?任何RPM大师能指出我正确的方向吗?

centos5 rpm rpmbuild

24
推荐指数
2
解决办法
2万
查看次数

错误:安装psycopg2时命令'gcc'失败并退出状态

我需要安装psycopg2openerp安装过程,但我总是发现错误.我已经使用pipeasy_install,我的gcc是最新的版本.真的需要你的帮助来解决我的问题......

这是我对easy_install的完整错误..

[root@server01 ~]# easy_install psycopg2    
Searching for psycopg2    
Reading http://pypi.python.org/simple/psycopg2/    
Reading http://initd.org/psycopg/    
Reading http://initd.org/projects/psycopg2    
Best match: psycopg2 2.4.5    
Downloading http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz    
Processing psycopg2-2.4.5.tar.gz    
Running psycopg2-2.4.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-anWVvJ/psycopg2-2.4.5/egg-dist-tmp-cZbdtn

no previously-included directories found matching 'doc/src/_build' In file included from psycopg/psycopgmodule.c:27:
./psycopg/psycopg.h:31:22: error: libpq-fe.h: No such file or directory In file included from psycopg/psycopgmodule.c:29:

...

error: Setup script exited with error: command 'gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

python gcc centos5 centos openerp

23
推荐指数
8
解决办法
4万
查看次数

如何在CentOS 5上升级到Subversion 1.5?

我的开发服务器(CentOS 5)正在运行Subversion 1.4.2,我希望将其升级到1.5.我已经阅读了分散在网络上的各种博客和文档,这可以通过使用RPMForge来完成.我已按照CentOS Wiki上的说明进行操作,包括安装yum-priority并按指示设置我的优先级(核心回购源为1和2,RPMForge为20).

但是,当我尝试运行时:

$ yum info subversion
Run Code Online (Sandbox Code Playgroud)

给我的版本号仍为1.4.2,状态为已安装.此时我的另一个选择是从源代码编译,但我想找到一个软件包管理的解决方案,以便于将来升级.

有什么想法吗?

linux svn version-control centos5 centos

22
推荐指数
1
解决办法
3万
查看次数

如何在iptables CentOS 6中打开端口2195以激活APNS

我试过这个解决方案:

iptables -I OUTPUT -p tcp --dport 2195 -j ACCEPT
/etc/init.d/iptables stop
/etc/init.d/iptables start
Run Code Online (Sandbox Code Playgroud)

但仍无法访问该端口.

如果我需要为APNS打开更多端口,请告诉我.

linux centos5 centos iptables apple-push-notifications

19
推荐指数
3
解决办法
7万
查看次数