redhat

Symfony is linked to the wrong PHP version

若如初见. 提交于 2019-12-23 09:25:34
问题 I'm trying to move my Project to a linux redhat server that uses Apache but the problem I'm facing there is that this Server has 2 different PHP versions installed. Symfony (2.5.12) seems to look for the php executable at /usr/bin/php by default but there is a 5.2 version installed, which is needed for other projects. At /opt/rh/php55/root/usr/bin/php is an installed 5.5 version of PHP that I want to use for symfony. So how can I configure Symfony to use the php version that is installed at

Pythonic way to check if a package is installed or not

…衆ロ難τιáo~ 提交于 2019-12-23 04:33:42
问题 Pythonic way to check list of packages installed in Centos/Redhat? In a bash script, I'd do: rpm -qa | grep -w packagename 回答1: import sys import rpm ts = rpm.TransactionSet() mi = ts.dbMatch( 'name', sys.argv[1] ) try : h = mi.next() print "%s-%s-%s" % (h['name'], h['version'], h['release']) except StopIteration: print "Package not found" TransactionSet() will open the RPM database dbMatch with no paramters will set up a match iterator to go over the entire set of installed packages, you can

Pythonic way to check if a package is installed or not

余生颓废 提交于 2019-12-23 04:33:03
问题 Pythonic way to check list of packages installed in Centos/Redhat? In a bash script, I'd do: rpm -qa | grep -w packagename 回答1: import sys import rpm ts = rpm.TransactionSet() mi = ts.dbMatch( 'name', sys.argv[1] ) try : h = mi.next() print "%s-%s-%s" % (h['name'], h['version'], h['release']) except StopIteration: print "Package not found" TransactionSet() will open the RPM database dbMatch with no paramters will set up a match iterator to go over the entire set of installed packages, you can

Why does my oracle statement run differently on a windows database than linux?

核能气质少年 提交于 2019-12-23 03:12:31
问题 I don't know where to begin to debug this. Some developers have been writing some pl/sql code locally on their Windows machines that complete fine using Oracle 10.2.0.1.0 - 64bit. When it gets to production, which is Red Hat 5.3 and running 10.2.0.2.0, it gives me this error: ORA-00904: "S"."BARSTREAMREFERENCEID": invalid identifier Here is the gist of the code that is working in Windows: EXECUTE IMMEDIATE(' update candyman.CANDY_REFERENCES s set ( s.flavour, s.taste, s.colour, s

Linux分类

人盡茶涼 提交于 2019-12-22 16:56:50
Linux versions: http://www.cnblogs.com/sammyliu/articles/4832157.html 1. Maintained by organization - Debian -> Ubuntu,通过apt-get or apt来管理包。Ubuntu(基于Gnome的Ubuntu,基于KDE的Kubuntu以及基于Xfc的Xubuntu)是最适合桌面的Linux版本 apt-get apt-cache apt-config apt implements most of the common functions of apt-get, but not all. 2. Maintained by firm - Redhat, 衍生出来的Fedora Core(Free,适用于桌面), CentOS(Redhat克隆版,由RHEL社区管理,Free) Redhat and CentOS can be used for server. much stabler 通过YUM管理RPM包 3. FreeBSD,安装比较复杂,但稳定高效,适用于做服务器。 4. Gentoo, 最年轻的Linux,安装最复杂,最高效。 来源: https://www.cnblogs.com/learn-everyday/p/10577108.html

how install rvm on RHL7 using centos repo

丶灬走出姿态 提交于 2019-12-22 13:46:35
问题 How to install rvm(ruby) on RHL7 using centos repo. I know if we are using centos repository we should be using centos OS and not RedHat, but we have a proprietary software that require Redhat. when I try to install ruby 1.93 using rvm I got this: rvm install 1.9.3 Searching for binary rubies, this might take some time. No binary rubies available for: redhat/6/x86_64/ruby-1.9.3-p551. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking

查看Linux版本的命令

爱⌒轻易说出口 提交于 2019-12-22 12:42:37
查看内核版本 [root@q1test01 ~]# cat /proc/version Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005 [root@q1test01 ~]# uname -a Linux q1test01 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux [root@q1test01 ~]# uname -r 2.6.9-22.ELsmp 查看Linux发行版本 lsb_release -a命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。 [root@3.5.5Biz-46 ~]# lsb_release -a LSB Version: 1.3 Distributor ID: RedHatEnterpriseAS Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 1) Release: 4

Exception using stix-fonts with openjdk?

夙愿已清 提交于 2019-12-22 06:42:34
问题 Problem happens while i try to create SXSSFWorkbook . Exception stacktrace : java.lang.ArrayIndexOutOfBoundsException: 0 at sun.font.CompositeFont.getSlotFont(CompositeFont.java:351) at sun.font.CompositeGlyphMapper.initMapper(CompositeGlyphMapper.java:81) at sun.font.CompositeGlyphMapper.<init>(CompositeGlyphMapper.java:62) at sun.font.CompositeFont.getMapper(CompositeFont.java:409) at sun.font.CompositeFont.canDisplay(CompositeFont.java:435) at java.awt.Font.canDisplayUpTo(Font.java:2063)

Address Out of bounds error when reading xml

左心房为你撑大大i 提交于 2019-12-22 06:11:16
问题 I am getting a weird segfault when using libxml to parse a file. This code worked previously when I compiled it as a 32bit application. I changed it to a 64 bit application and it stops working. The seg fault comes in at "if (xmlStrcmp(cur->name, (const xmlChar *) "servers"))" cur->name is a const xmlChar * and it points to an address that says its out out bounds. But when I debug and go to that memory location, that data is correct. int XmlGetServers() { xmlDocPtr doc; xmlNodePtr cur; doc =

File listed twice in rpm spec file

跟風遠走 提交于 2019-12-22 06:01:14
问题 The files section of my spec-file looks like this: %files %{prefix}/htdocs/ %config %{prefix}/htdocs/share/settings/config.inc.php Now, since the config file is already included in the %{prefix}/htdocs/ line I get the warning 'File listed twice'. One way around would be, to list every single file within %{prefix}/htdocs/ , except the config file. But my question is: Is there a better way around this issue, than listing all files? 回答1: Unfortunately not. RPM is quite oldschool software, but