Re: [CentOS] PHP and PHP53

2012-04-17 Thread Peter Hopfgartner
On 04/17/2012 12:18 AM, Max Pyziur wrote:
 Greetings,

 We have someone requesting the use of Wordpress 3.3.1. It requires PHP 5.2
 minimum.

 Currently, our machine is running CentOS 5.7.


 What are the issues/concerns in upgrading from PHP 5.1 (the current PHP
 rpms) to PHP53?

We have been using php53 on all of our centos5 servers for severeal 
months, now. No major problem at all. Just set the timezone in /etc/php.ini.

 Much thanks,

 Max Pyziur
 p...@brama.com
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
Bye,
Peter
-- 

Peter Hopfgartner
web  : http://www.r3-gis.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Installation on a Macbook Pro with nVidia MCP89 SATA controller

2011-12-27 Thread Peter Hopfgartner
Did anybody succeed in installing CentOS on a MacBook Pro with nVidia 
chipset (2010 edition, 
http://www.heise.de/mac-and-i/produkte/macbook-13-2-4-ghz-mitte-2010-86/#produkt_detail)?
When I boot with the current minimal install disk, Linux does simply see 
non disks.

Regards,

Peter
-- 
Peter Hopfgartner
R3 GIS
http://www.r3-gis.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Installation on a Macbook Pro with nVidia MCP89 SATA controller

2011-12-27 Thread Peter Hopfgartner
On 12/27/2011 03:05 PM, B.J. McClure wrote:

 On Tue, 2011-12-27 at 15:00 +0100, Ljubomir Ljubojevic wrote:
 On 12/27/2011 02:10 PM, B.J. McClure wrote:
 On Tue, 2011-12-27 at 09:30 +0100, Peter Hopfgartner wrote:

 Did anybody succeed in installing CentOS on a MacBook Pro with nVidia
 chipset (2010 edition,
 http://www.heise.de/mac-and-i/produkte/macbook-13-2-4-ghz-mitte-2010-86/#produkt_detail)?
 When I boot with the current minimal install disk, Linux does simply see
 non disks.

 Regards,

 Peter
 I tried CentOS 6.0 and 6.1 on Mac-Air with SSD.  Installer could not
 find SSD and Google did not help.  FWIW, Ubuntu installed fine.  If you
 find the solution please post.  All other machines in our shop are
 CentOS 5.x, 6.x or RHEL 6.x, so commonality would be perfect.

 Sorry I could not help.

 B.J.

 CentOS release 6.2 (Final)

 It is not clear if either of you tried CentOS 6.2, or just 6.0 and 6.2.
 Errr, maybe a re-read is in order?

 I tried CentOS 6.0 and 6.1 on Mac-Air with SSD.

 B.J.

 CentOS release 6.2 (Final)


 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

I've tried 6.1 and 6.2.
The entry in the kernel bugzilla should be (does not open, for me): 
https://bugzilla.kernel.org/show_bug.cgi?id=15923
In the Fedora Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=6080340
I guess, it all comes down to Red Hat including this patch or not.

Regards,

Peter
-- 
Peter Hopfgartner
R3 GIS
http://www.r3-gis.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS-virt] Should I switch and if so what is the procedure

2011-10-06 Thread Peter Hopfgartner

On 10/06/2011 12:58 PM, Rich wrote:
Its seems that I should switch then.  I have 2 servers using Xen.  
What is the procedure to conver them? Is there procedure I should use. 
I have to use the same boxes I can not export vm's.



I've used the following links to migrate our office servers:

http://www.gloudemans.info/migrate-paravirtualized-xen-to-kvm-under-rhel/

http://www.cyberciti.biz/faq/troubleshooting-kvm-virtualization-problem-with-log-files/

http://www.cyberciti.biz/faq/rhel-linux-kvm-virtualization-bridged-networking-with-libvirt/

In any case, be cautious, make backups and don't do this at 3:00 AM.

Peter


On Wed, Oct 5, 2011 at 7:46 PM, Dennis Jacobfeuerborn 
denni...@conversis.de mailto:denni...@conversis.de wrote:


On 10/05/2011 06:16 PM, Ed Heron wrote:

 On Wed, 2011-10-05 at 10:55 -0400, Rich wrote:
 Since the Xen and Linux kernel people have finally made peace
and Xen
 is going to be included with the kernel, should I keep using
the Xen
 virtual server with Centos or should I switch to KVM?  I am running
 Centos 5.7 now.
 I guess the real question is can I still use Xen with Centos 6?

The support end of life for CentOS 5 is listed as March 31, 2014


(http://wiki.centos.org/FAQ/General#head-fe8a0be91ee3e7dea812e8694491e1dde5b75e6d).
 There isn't any pressure, at this point, to convert your VM hosts
to CentOS 6 unless there is some feature you require.

I doubt RH will add XEN support to RHEL 6.  They don't like
to add
 functionality to an existing product.  We can hope they bring
XEN back
 in RHEL 7.

While Xen will probably return in RHEL 7 simply because it is part
of the
upstream kernel now I doubt it will be officially supported by Red
Hat.
Between buying Qumranet (http://www.redhat.com/promo/qumranet/)
and now
Gluster (https://www.redhat.com/promo/storage/) it is clear that
Red Hat
aims to become a provider of a complete independent virtualization
stack
and is unlikely to support competing products directly.

The question is what does Xen offer that KVM cannot provide?
Looking at the
slides of the KVM Forum 2011
(http://www.linux-kvm.org/page/KVM_Forum_2011)
there seem to be many interesting improvements in the pipeline so
at some
point the question really is why hold on to Xen at all when there
is not
real reason to?

Regards,
  Dennis

___
CentOS-virt mailing list
CentOS-virt@centos.org mailto:CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt



___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt



___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] Connection stall when connecting to XEN guests

2010-04-14 Thread Peter Hopfgartner
Hello

I have a physical server (Dell Poweredge  1950III) running current 
CentOS 5.4 x86_64 and the XEN hypervisor, provided by CentOS.

This machine has 2 virtual machines installed, both with CentOS 5.4 x86_64.

Unfortunatly SSH connections coming both, from an external machine or 
from DOM0, regularly stall, for a period of some minutes. In other 
words, while working through SSH, at a given moment everything freezes 
and after some minutes thaws again.

We have several other machines with similar hardware/software 
configurations, but none of these has similar stalls.

Anyway, when attaching the console with xm console vm-name there are 
no stalls at all.

Does anybody have any suggestion on where to start to trouble shoot this 
problem?

Regards,

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

XING : http://www.xing.com/go/invita/8917535 

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Connection stall when connecting to XEN guests

2010-04-14 Thread Peter Hopfgartner
compdoc wrote:
 Ive seen this happen in some distros when the option
 'UseDNS' is set to yes in the file sshd_config

 Of course, there could be issues with your network setup as
 well...


 ___
 CentOS-virt mailing list
 CentOS-virt@centos.org
 http://lists.centos.org/mailman/listinfo/centos-virt

   
Nothing seems to change. Indeed, also pinging the guest has the same 
problems. I'm also monitoring this machine since this morning and 
services are up and down and I can not understand why.

iptables on dom0 and vm guest are, at the moment, turned off.

Summarizing:

1. This happens on all XEN guests on this physical server, except dom0. 
It does not happen on any other server/xen guest.

2. Outgoing network connections are fine.

3. xm console xen_guest works fine.

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

XING : http://www.xing.com/go/invita/8917535 

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS] Who's eating our bandwidth?

2009-11-04 Thread Peter Hopfgartner
Niki Kovacs wrote:
 Hi,

 I've recently setup a new server for our public libraries. For the last 
 two years, this has been my first big job, since it involves 
 networking eleven small to medium size public libraries.

 There was a hiccup some time ago when the administration hiring me 
 wanted to do it on their own, but it took them less than two weeks to 
 get the server hacked and lose everything. So they decided to hire me 
 back :o)

 I've rented a little dedicated server at the french provider Ikoula. 
 Really a small thing, a KVM amounting to 1/2 a processor core, 512 MB 
 RAM and 25 GB of disk space. Usually there should be no more than like 
 ten people working simultaneously on the library management software 
 (running atop MySQL).

 For the last few days, users reported that the install was terribly 
 slow. I checked, and indeed, the application took quite some time to 
 respond.

 First thing, I wonder if the configuration I chose is too modest for the 
 setup.

 Then, I took a peek in /var/log/httpd and the *-access.log files show 
 quite some activity. Some haphazard whois on various IP addresses show 
 me that these are no library users from around here. Like: Bogota?!? 
 Peking?!? And quite some search engines. Since I don't need search 
 engines for our application, I'm going to have to find a way to banish 
 these.

 The log files are not very handy to decipher, so I googled a bit, and I 
 think today I'm going to check out AWStats, which seems to be the right 
 thing to use in that case.

 I'm also wondering about activity on other ports, but here also I'm 
 taking stabs in the dark. Probably SSH, but I don't know where eventual 
 failed attempts get logged.

 I also googled a bit, and I think in this domain, fail2ban will be my 
 next experiment.

 I have this strange feeling that the next step in the wise direction 
 consists in describing my ignorance :o)

 Any suggestions?

 Cheers from the sunny south of France,

 Niki
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

   
Try to do some smart configuration on Apache:

1) You may consider to compress HTML, CSS and JS 
(http://httpd.apache.org/docs/2.2/mod/mod_deflate.html). This may save 
you quite some bandwidth.

2) Further, consider adding some expiration attributes 
(http://httpd.apache.org/docs/2.2/mod/mod_expires.html).

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] install Oracle on the Centos

2009-08-17 Thread Peter Hopfgartner
Han mo wrote:
 Hello everyone,

 does anyone install the oracle on the centos?
 I try to install the oracle on my computer.  but fail.
 It has problem on kernel setting and add the swap disk.

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

   
Just use the instructions that you find for Red Hat RHEL. Googling 
around that are tons of docs on this topic, e.g.:

http://www.oracle.com/technology/pub/articles/smiley_10gdb_install.html
http://www.linuxjournal.com/article/3572

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Connection to Microsoft ISA 2006 via IPsec

2009-08-03 Thread Peter Hopfgartner
Dear list members,

has anybody successfully established a VPN connection  with CentOS to a 
VPN served by a Micorosft ISO 2006 server (IPsec + tunnel mode)?

Regards,

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS-virt] Migrating from VMWare Workstation

2009-07-15 Thread Peter Hopfgartner
Peter Hopfgartner wrote:
 Dear virt list

 I have some virtual machines running on my notebook under VMWare 6.5.2 
 64 bit that I would like to move to a current 64 bit CentOS 5.3 machine 
 with a current Intel Xeon processor. The virtual machines do use the 
 GUI, e.g. they are not text only.

 Is it better to use VMware server or Xen?

 If using Xen, do I have to convert the images?

 Regards,

 Peter


   
1: you can not run XEN and VMWare server at the same time. VMWare 
refuses to install with a XEN-enabled kernel.
2: A How-To for migrating CentOS images is at 
http://www.funkypenguin.info/tutorial/how-to-convert-a-centos-5-vmware-image-to-xen/

Will try it next week.

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] Migrating from VMWare Workstation

2009-07-10 Thread Peter Hopfgartner
Dear virt list

I have some virtual machines running on my notebook under VMWare 6.5.2 
64 bit that I would like to move to a current 64 bit CentOS 5.3 machine 
with a current Intel Xeon processor. The virtual machines do use the 
GUI, e.g. they are not text only.

Is it better to use VMware server or Xen?

If using Xen, do I have to convert the images?

Regards,

Peter


-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS] which programming language for server-side admin tasks

2009-06-15 Thread Peter Hopfgartner
Rudi Ahlers wrote:
 Hi,

 I would like to spend some time learning a new coding language, but 
 specifically for server side admin stuff, i.e. setting up users / 
 databases / FTP accounts / virtual domains on Apache, etc.

 I already know PHP, but realize it's not quite suited for this kind of 
 admin, and I suppose I need to look @ PERL / Python / C++ / Ruby? / 
 others?

 Can someone give me some pointers on this?

Python has become quite common for sysadmin stuff. Indeed, a lot of 
RedHat/Fedora (e.g. anaconda, the installer) and Ubuntu tools are really 
Python scripts. The code is quite readable and usually, there are Python 
bindings for almost every popular C library.

GUI can quickly be made with PyGTK or WxPython.

Programming language runtime performance is usually not an issue for 
sysadmin tasks, since most of the time you r program will have to wait 
for some disk I/O, a backup tape, etc.

 I basically need to write a control panel, with web access for admins 
 to manage servers, similar to what cPanel / WebMin / Plesk / etc does 
 right now, but something more customized for our needs.

 -- 
 Kind Regards
 Rudi Ahlers
 CEO, SoftDux Hosting
 Web: http://www.SoftDux.com
 Office: 087 805 9573
 Cell: 082 554 7532
   
Peter
 

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
   


-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Random server reboot after update to CentOS 5.3

2009-06-08 Thread Peter Hopfgartner
Scott Silva wrote:
 on 6-3-2009 2:27 AM Peter Hopfgartner spake the following:
   
 Epilogue:

 I've tried to disable TSO (ethtool -K eth0 tso off), as was suggested on 
 the poweredge list. This did not help.

 I've configured the machine to start with the 5.2 kernel in 
 /boot/grub/grub.conf, changing the default. It has been running for 6 
 1/2 days, now. I would say that this helped and is what I would suggest 
 to others experiencing the same problem, right now.

 Thus, current running kernel is  2.6.18-92.1.10.el5xen.

 Regards and thanks for all replies,

 Peter

 
 That sure points to a machine/kernel conflict. You could try getting the
 source and rebuilding to see if that solves it, or maybe a diff of the two
 kernel configs to see if something is different there. Maybe someting is added
 or turned on in the new kernel that your system doesn't like.

 Also, make sure your systems bioses are up to date. Not just motherboard, but
 any other cards that have firmware that might have an update like raidcard/sas
 controllers or ???

   
 

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
   
Dear Scott,

unfortunately the machine is in production. Any downtime is really a 
problem since it is seen directly by our customers. I would really like 
to do some active effort to isolate the problem, but my boss would cut 
my head off, if I have to stop the machine. The firmware is not current, 
but according to Dell's web site I should stop almost every running 
service on the machine before upgrading the firmware, and in this case I 
would again have to watch out for my head. I do really care to provide 
accurate bug reports to OS projects that I use (I would guess that 90 % 
of my reports lead to a quick fix), but in this case I do have to make 
an exception and keep the machine running.

Thanks,

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Random server reboot after update to CentOS 5.3

2009-06-03 Thread Peter Hopfgartner
Epilogue:

I've tried to disable TSO (ethtool -K eth0 tso off), as was suggested on 
the poweredge list. This did not help.

I've configured the machine to start with the 5.2 kernel in 
/boot/grub/grub.conf, changing the default. It has been running for 6 
1/2 days, now. I would say that this helped and is what I would suggest 
to others experiencing the same problem, right now.

Thus, current running kernel is  2.6.18-92.1.10.el5xen.

Regards and thanks for all replies,

Peter








Peter Hopfgartner wrote:
 Dear ML

 We upgraded a Dell Poweredge PE 1950 Server the 8th of May. Since then 
 the server rebooted 3 times without external cause (it is located in a 
 server farm with redundant power supply etc.). Looking at the servers 
 monitoring infrastructure with Dell's own OpenManage tools, I  get 
 strange errors:

  [r...@servernew ~]# omreport system esmlog

 ()

 Severity  : Critical
 Date and Time : Mon May 11 17:46:59 2009
 Description   : System Software event: run-time critical stop was asserted

 Severity  : Critical
 Date and Time : Fri May 15 21:07:57 2009
 Description   : System Software event: run-time critical stop was asserted

 Severity  : Critical
 Date and Time : Wed May 20 21:00:53 2009
 Description   : System Software event: run-time critical stop was asserted


 (...)

 This class of errors never happened before in over a year that the 
 server is running.

 There is no mention of any anomaly, except the boot messages itself, in 
 /var/log/messages.

 The server runs the 64 bit flavor of CentOS hosting some XEN virtual 
 machines and some PostgreSQL and MySQL databases. It run without any 
 issues with CentOS 5.1 and 5.2.

 I interpreted these issues as some kernel/software related problem, but 
 do not know how to make a more accurate diagnosis of the problem.

 Can anybody give me some hint? Has anybody had some similar issue?

 Regards,

 Peter

   


-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Intel Atom systems?

2009-05-25 Thread Peter Hopfgartner
I had some of them, too, running for years. The only problem I incurred 
was with a Flash memory that degraded after a while, so I would really 
recommend some of thoses industrial grade flash memories. The hardware 
is superb.

Peter

nate wrote:
 Bill Campbell wrote:
   
 Any comments on CentOS 5 on Intel Atom CPUs?

 I need to build a couple of inexpensive systems that will be used
 primarily as gateway/firewall systems with OpenVPN, and need
 recommendations in reliable hardware platforms.  These will need
 two NICs.
 

 Go with Soekris, they are built for that purpose. You can even
 get an SSL accelerator card for them. Mine has a ~500Mhz AMD
 Geode CPU, 512MB ram, I added a 1GB CF card, it has 4x100Mbit
 NICs, it has a slot for a PCI device, I put a bracket with
 another serial port on there to hook to a UPS, has a USB port,
 and a serial port for console access, draws a tiny amount of
 power.

 I don't consider linux a good platform for firewall or VPN
 devices myself, I use OpenBSD, with pf. I have an OpenVPN
 from my soekris box at home to my co-located server(runs
 Debian), have had it hooked up for almost a year now, works
 great. I don't need the SSL acceleration card as my commit
 rate at the colo is only 1Mbit, so I don't want to push a lot
 of traffic.

 http://www.soekris.com/net5501.htm

 These things are designed from the ground up to be firewall/VPN
 appliances(low end mind you, your not gonna be pushing gigabits
 of traffic through them). The CPU on mine doesn't even have a
 heat sink.

 nate



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

   


-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Random server reboot after update to CentOS 5.3

2009-05-22 Thread Peter Hopfgartner
William L. Maltby wrote:
 On Thu, 2009-05-21 at 20:07 +0200, Ralph Angenendt wrote:
   
 Lanny Marcus wrote:
 
 It would have been helpful, if the error message told you which system
 software.  :-)   The Upgrade from 5.2 to 5.2 seems to have been
 problematic for some people on this list.  When you did the Upgrade,
 did you follow this sequence, per the CentOS 5.3 Release Notes?
 yum clean all  yum update glibc\*  yum update
 If not, that may or may not have anything to do with the reboots and
 error messages you have received.
   
 No, it would not have to do anything with the spontaneous reboots. The 
 problem with glibc only concerns rpm, as the release notes clearly state.
 

 Since nobody else mentioned it to th OP, ...

 Let us not forget that often the hardware chooses to act up around the
 same time that some kind of (software) upgrade is performed. I've wasted
 a lot of time in the past *assuming* that because the hardware was
 rock-solid in the past, it must have been some change (I made) to the
 software.

 I suggest running diagnostics, or manually re-seating everything
 (especially if you had occasion to move the unit or open it recently).

 Memory used to age, does it still? Memtest*86 might be in order.

   
The machine has ECC RAM and extensive hardware logging build in. It 
should be quite uncommon that the build in server logging would not 
notice a memory failure. The server diagnostics from Dell do not show 
any hardware failure at all, only a software problem. In my experience, 
memory problems lead in most cases to application instability,  but I've 
never seen a reboot like this, that leaves absolutely no trace in the 
Linux logs. Taking the reboot, that happened tonight:

The Dell utility says:

Severity  : Critical
Date and Time : Thu May 21 21:16:16 2009
Description   : System Software event: run-time critical stop was asserted

 From /var/log/messages:

May 21 10:58:38 servernew auditd[18962]: Init complete, auditd 1.7.7 
listening f
or events (startup state enable)
May 21 21:18:58 servernew syslogd 1.4.1: restart.
May 21 21:18:58 servernew kernel: klogd 1.4.1, log source = /proc/kmsg 
started.
May 21 21:18:58 servernew kernel: Bootdata ok (command line is ro 
root=LABEL=/)
May 21 21:18:58 servernew kernel: Linux version 2.6.18-128.1.10.el5xen 
(mockbuil
d...@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) 
#1 SMP T
hu May 7 11:07:18 EDT 2009
May 21 21:18:58 servernew kernel: BIOS-provided physical RAM map:

Reassuming: nothing happens for hours and then, zack!, boom!, the server 
restarts.


Regards,

Peter
 Ralph
 snip sig stuff
 

 HTH
   


-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Random server reboot after update to CentOS 5.3

2009-05-22 Thread Peter Hopfgartner
Ralph Angenendt wrote:
 Lanny Marcus wrote:
   
 It would have been helpful, if the error message told you which system
 software.  :-)   The Upgrade from 5.2 to 5.2 seems to have been
 problematic for some people on this list.  When you did the Upgrade,
 did you follow this sequence, per the CentOS 5.3 Release Notes?
 yum clean all  yum update glibc\*  yum update
 If not, that may or may not have anything to do with the reboots and
 error messages you have received.
 

 No, it would not have to do anything with the spontaneous reboots. The 
 problem with glibc only concerns rpm, as the release notes clearly state.

 Ralph
 

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
   
Would it make sense to install the kernel from CentOS 5.2? Any 
contraindications?

Regards,

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Random server reboot after update to CentOS 5.3

2009-05-22 Thread Peter Hopfgartner
JohnS wrote:
 On Fri, 2009-05-22 at 09:44 +0200, Peter Hopfgartner wrote:
 snip
   
   
   
 Would it make sense to install the kernel from CentOS 5.2? Any 
 contraindications?

 Regards,

 Peter
 
 ---
 Now why in the world would you want to do that??? You running 5.3 as per
 your earlier post and your uname shows you running the Xen Kernel.
 Always run the newest kernel *unless* there are very good reasons not to
 and I do not see that for your situation. Use the latest 5.3 NON Xen
 Kernel to test it with.
   
A random kernel reboot on a production machine is a good reason, at 
least from my POV. It run fine for months with 5.2 and has now problems 
running with 5.3. If it is not able to run XEN, then I have to trash the 
whole thing, since the ASp services hosten on the machine are within XEN 
guests. No XEN - no business. And id DID run fine before the update.
 My sejustion is unplug everything hooked to it but the power and network
 cabling. Open it up while it is running, and shake the cables lightly
 ( don't jerk on them). External disk array, unplug it also. USB floppies
 and cd drives unplug emmm all. 

 Is it under a heavy load? High cpu usage? Some times when there is a
 power supply on the verge of dying you don't really know until disk I/O
 climbs real high thus pulling loads of wattage. Pentium 4 and up cpus
 are bad about this also.
   
No heavy load, it crashes even at times when tere is almost noload at 
all. The power supplies are rwedundand and hardware monitoring tells me 
they are both fine, as is the rest of the hardware of the machine.
 Run memtest86 for a few hours not just a min or two and say ahh it's ok.
 It takes time. Is there gaps in your log files like white space?
   
No gaps. Simply the machine restarts at a given moment. No shutdown, no 
traces of a kernel panic
 Hardware raid controller updated to latest firmware release?
Indeed, updating firmware and maybe some drivers from Dell's support 
site will be the next actions.

  Ok I guess
 others can tack onto my list here as well.I wouldn't get to discouraged
 because sometimes it can take days to find the problem.


   
Thank you for the infos,

Peter
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

   


-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Random server reboot after update to CentOS 5.3

2009-05-22 Thread Peter Hopfgartner
The guys on the Dell PowerEdge ML seem to be attracted by the idea that 
it is a driver problem of the network adapter. In this case, lspci gives me:

09:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 
Gigabit Ethernet (rev 12)

Does this match your adapter?

Regards,

Peter

Mathew S. McCarrell wrote:
 Actually, I've also been experience this issue on a two identical 
 custom built systems running 5.3 x64 with Xen.  I experienced the 
 issue under the same kernel that Peter is running and the first kernel 
 released with 5.3.

 In my particular instance, I'm attributing these random crashes to 
 hardware problems since I'm only experiencing the issues on these two 
 systems and not an older Dell PowerEdge 850 which is set up with the 
 same software configuration.

 Matt

 --
 Mathew S. McCarrell
 Clarkson University '10

 mccar...@gmail.com mailto:mccar...@gmail.com
 mccar...@clarkson.edu mailto:mccar...@clarkson.edu


 On Fri, May 22, 2009 at 10:26 AM, Michael A. Peters mpet...@mac.com 
 mailto:mpet...@mac.com wrote:

 JohnS wrote:

 
  My sejustion is unplug everything hooked to it but the power and
 network
  cabling. Open it up while it is running, and shake the cables
 lightly
  ( don't jerk on them). External disk array, unplug it also. USB
 floppies
  and cd drives unplug emmm all.
 
  Is it under a heavy load? High cpu usage? Some times when there is a
  power supply on the verge of dying you don't really know until
 disk I/O
  climbs real high thus pulling loads of wattage.

 That's my guess.
 I'd swap out the power supply.

 My personal experience with ram issues is either kernel panic or
 filesystem funnyness (sometimes resulting in filesystems being
 remounted
 read only). My experience with disk I/O issues is that forcing fsck
 reveals filesystem errors with high frequency.

 Rebooting machines in my experience is almost always a failing power
 supply (or faulty power source - check your UPS, when they start to go
 bad they can cause issues).

 If it was a kernel issue, I suspect more people would be experiencing
 (unless it is caused by a third party kmod)
 ___
 CentOS mailing list
 CentOS@centos.org mailto:CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


 

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
   


-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Random server reboot after update to CentOS 5.3

2009-05-21 Thread Peter Hopfgartner
Dear ML

We upgraded a Dell Poweredge PE 1950 Server the 8th of May. Since then 
the server rebooted 3 times without external cause (it is located in a 
server farm with redundant power supply etc.). Looking at the servers 
monitoring infrastructure with Dell's own OpenManage tools, I  get 
strange errors:

 [r...@servernew ~]# omreport system esmlog

()

Severity  : Critical
Date and Time : Mon May 11 17:46:59 2009
Description   : System Software event: run-time critical stop was asserted

Severity  : Critical
Date and Time : Fri May 15 21:07:57 2009
Description   : System Software event: run-time critical stop was asserted

Severity  : Critical
Date and Time : Wed May 20 21:00:53 2009
Description   : System Software event: run-time critical stop was asserted


(...)

This class of errors never happened before in over a year that the 
server is running.

There is no mention of any anomaly, except the boot messages itself, in 
/var/log/messages.

The server runs the 64 bit flavor of CentOS hosting some XEN virtual 
machines and some PostgreSQL and MySQL databases. It run without any 
issues with CentOS 5.1 and 5.2.

I interpreted these issues as some kernel/software related problem, but 
do not know how to make a more accurate diagnosis of the problem.

Can anybody give me some hint? Has anybody had some similar issue?

Regards,

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Random server reboot after update to CentOS 5.3

2009-05-21 Thread Peter Hopfgartner
Ian Forde wrote:
 On Thu, 2009-05-21 at 15:13 +0200, Peter Hopfgartner wrote: 
   
 Dear ML

 We upgraded a Dell Poweredge PE 1950 Server the 8th of May. Since then 
 the server rebooted 3 times without external cause (it is located in a 
 server farm with redundant power supply etc.). Looking at the servers 
 monitoring infrastructure with Dell's own OpenManage tools, I  get 
 strange errors:
 
(...)
 The server runs the 64 bit flavor of CentOS hosting some XEN virtual 
 machines and some PostgreSQL and MySQL databases. It run without any 
 issues with CentOS 5.1 and 5.2.

 I interpreted these issues as some kernel/software related problem, but 
 do not know how to make a more accurate diagnosis of the problem.

 Can anybody give me some hint? Has anybody had some similar issue?
 

 Hmm... you *definitely* want to take this one to the Dell Linux list.
   
Ok, done that: 
http://lists.us.dell.com/pipermail/linux-poweredge/2009-May/039257.html
 Having said that, I did some googling for:

   omreport run-time critical stop was asserted

 and found only one hit for someone that faced it in April 2007.
Ok, now there are two in google search results!
   And
 Dell told them that it may have been software.  I'd start there.  Some
 additional questions: What version of CentOS?  What kernel version?
 What version of the Dell tools?

   
Indeed, since the only major thing that changed was an yum update 
passing from 52. to 5.3, this is what I would guess, too. But my craft 
stops here.
   -I

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

   
CentOS: 5.3 + PostgreSQL from CentOS Testing and some home build GIS package

uname -a: Linux servernew 2.6.18-128.1.10.el5xen #1 SMP Thu May 7 
11:07:18 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

[r...@servernew ~]# omreport about

Product name : Server Administrator Install Core (subscription)
Version  : 5.5.0
Copyright: Copyright (C) Dell Inc. 1995-2008. All rights reserved.
Company  : Dell Inc.

Regards,

Peter



-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] php 5.2

2009-03-16 Thread Peter Hopfgartner
Jim Perrin wrote:
 On Sat, Mar 14, 2009 at 10:39 PM, Melinda Odom i...@designhosting.biz wrote:
   
 Hi,

 Is there any news about CentOS 5.2 updating to php 5.2?
 

 There have been packages for php 5.2 in the Centos Testing repository
 for a while now. They work fine (for me at least), it's just that very
 few folks are reporting the functionality, so they aren't moving into
 centosplus or more common repositories.

 See http://wiki.centos.org/AdditionalResources/Repositories for more 
 information



   
It seems to me that feedback to packages in testing are getting lost. I 
sent mine for PHP and PostgreSQL (both run really fine on a  number of 
our servers), but there is no reply and no reaction. Maybe a Wiki-Page 
or a ticket would be a better place to gather feedback then the L.

Regards,

Peter


-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Status of PostgreSQL and PHP in Testing

2009-01-21 Thread Peter Hopfgartner
Peter Hopfgartner wrote:
 Dear CentOS developers

 I would like to have ask some questions about the PostgreSQL and PHP 
 packages in the current Testing repository for CentOS 5.

 In http://wiki.centos.org/QaWiki/TestingRepo there is a note, that the 
 testing period is about 3 weeks. Currently, the PostgreSQL and PHP 
 packages in http://dev.centos.org/centos/5/testing/SRPMS were created in 
 September 08.

 Do the developers need more feedback about the packages in testing? Is 
 there something (a wiki page, a ticket in the bug tracker or something 
 else) where the feedback can be collected?

   
I've tried the packaged on our development server, an Opteron server 
with a curent CentOS5-x86_64 installation with 9 GB of postgresql data, 
a good part of which geografical data.

Basically, until now everything runs as expected. No problems with the 
selected packages.

Regards,

Peter
 Is there a testing plan for the packages (works with this and that 
 software, upgrade from base works)?

 What is the best way I can help? Simply sending feedback to the ML?

 Is there a kind of policy for the upstream version, something like: 
 version is expected to be in the next major Red Hat release, must be 
 part of Upstream Web Stack or another Upstream product. Casting this to 
 a concrete question: Can upgrades to PHP 5.2.8 or PostgreSQL 8.2.11 be 
 expected to happen.

 And is there already a concrete plan to move those 2 packages to Plus 
 [http://mirror.centos.org/centos/5/centosplus/]?

 Regards and thank you for this great distribution. The more I work with 
 it the more I like it.

 Peter

   


-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Status of PostgreSQL and PHP in Testing

2009-01-19 Thread Peter Hopfgartner
Dear CentOS developers

I would like to have ask some questions about the PostgreSQL and PHP 
packages in the current Testing repository for CentOS 5.

In http://wiki.centos.org/QaWiki/TestingRepo there is a note, that the 
testing period is about 3 weeks. Currently, the PostgreSQL and PHP 
packages in http://dev.centos.org/centos/5/testing/SRPMS were created in 
September 08.

Do the developers need more feedback about the packages in testing? Is 
there something (a wiki page, a ticket in the bug tracker or something 
else) where the feedback can be collected?

Is there a testing plan for the packages (works with this and that 
software, upgrade from base works)?

What is the best way I can help? Simply sending feedback to the ML?

Is there a kind of policy for the upstream version, something like: 
version is expected to be in the next major Red Hat release, must be 
part of Upstream Web Stack or another Upstream product. Casting this to 
a concrete question: Can upgrades to PHP 5.2.8 or PostgreSQL 8.2.11 be 
expected to happen.

And is there already a concrete plan to move those 2 packages to Plus 
[http://mirror.centos.org/centos/5/centosplus/]?

Regards and thank you for this great distribution. The more I work with 
it the more I like it.

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] PHP 5.2.x rpm for Centos 5? (any news)

2008-12-27 Thread Peter Hopfgartner
Building the PHP source rpms from Fedora 10 should work fine. We use 
them for our servers. Rebuilding source RPMs is extremly easy.

Regards,

Peter

mbneto wrote:
 I've searched the archives and found a post last march about a rpm 
 version of php for centos.

 Any news about it? 
 Is it still in testing? 
 Any known issues?
 Where do I get it?

 Thanks.
 

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
   


-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, PHP, Basic GIS

2008-12-23 Thread Peter Hopfgartner
Dear Micheal,

are there any good reasons not to use a normal cartesian grid? I can no 
tremember any GIS software that can use haxagonal tiles as a raster.

Anyway, there is quite a lot of GIS software that you can obtain via 
EPEL [http://fedoraproject.org/wiki/EPEL].

In case you want to publish geographical informations, do yourself a 
favor and use some of the many excellent tools out there, have a look at 
http://www.osgeo.org. A good part of the world's leading open source GIS 
people works on those projects.

Some, trying to summarize: If you want to keep your data on a database, 
go with PostgreSQL and PostGIS or SQLLite with it's spatial extensions.

If you want to work with desktop applications, have a look at QGIS and, 
at a more advanced level, GRASS.

If you want to publish your data on the web and feel more inclibned to 
PHP then to JAVA have a look at MapServer for creating the rendered 
images of your geographical data and to OpenLayers or Mapbender or 
eventulally p-mapper for publishing the rendered images on the web. 
These are the tools that we been are using here for years and your can 
go any distance with them.

Regards,

Peter



Michael A. Peters wrote:
 I have no experience with GIS whatsoever. I really know squat about it.

 I'm currently working on a project to plot locality data for wildlife on 
 a map of Shasta County. This is for a new herpetological club that hopes 
 to track strength of our local herp populations, since it seems evident 
 that in the last 20 years we lost one species of frog and are close to 
 losing another (probably less than 100 left and they don't seem to be 
 successfully breeding) and the declines were known, but the extent of 
 the declines was not known well enough until it was too late. We want to 
 try and prevent that with other species in our county by keeping records 
 of where they currently are and where they use to be but are no longer 
 found. When we see what appears to be shrinking range, we can 
 investigate and if need be, request surveys by wildlife management 
 before it is too late.

 Basically - the data will be plotted as a grid of regular hexagons. When 
 locality information (museum record or photo voucher record in our own 
 database) exists, the hexagon the record sits in gets drawn a pretty 
 color (depending on type and age of records).

 I have it working on a raster (jpg) map where I guessed the 
 latitude/longitude borders - working well enough with sample data that I 
 know my php code works, but while it is ballpark accurate I need to do 
 it with maps of known values.

 Quick and dirty option - obtain (possibly pay for) a large (at least 2k 
 pixels wide) raster map with known lat/lon borders that has the county 
 outline, major lakes and rivers, nothing else. The maps could be made 
 and then resized for web view. The major problem with that model is that 
 drawing colored hexagons near the county border and near rivers will 
 make it more difficult to see them, thus making it harder to interpret 
 the map.

 What I would prefer to do -

 Draw my data hexagons on a blank slate [ via imagecreate(width,height) 
 function), then draw the county border on top of that, and then on top 
 of that either draw the lakes/rivers and/or basic topographical lines.

 My preference obviously includes getting data sets for those things 
 (county border, lakes/rivers, topography) in a format that I can parse 
 with php to draw them with gd.

 My county does have some GIS data available:
 http://www.shastagis.co.shasta.ca.us/gissearch/search_new.aspx

 I don't have a clue how to get that data into format useful for drawing 
 with gd via php.

 Anyone have experience with this? Can anyone recommend a (preferably 
 free) Linux GIS program that works on CentOS that could potentially 
 convert data files into format useful for drawing with gd?

 I don't need to get fancy with zoom, rotate, etc. capabilities - just a 
 basic static flat map output.

 Thanks for any suggestions. I may try to find a GIS for dummies type 
 book, though I've generally not been fond of dummy books, I kind of feel 
 like one when it comes to GIS.
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

   


-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problems compiling PostgreSQL package from FC8 on CentOS 5

2008-12-16 Thread Peter Hopfgartner
Pintér Tibor wrote:
 http://yum.pgsqlrpms.org/reporpms/repoview/pgdg-centos.html

 t
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

   

Hey, this would save me a lot of time. Do they differ significantly from 
the Fedora/RedHat packages for things like directory layout and default 
configuration?

Thanks,

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Problems compiling PostgreSQL package from FC8 on CentOS 5

2008-12-15 Thread Peter Hopfgartner
Dear CentOS list

we are a small software company making mostly web driven GIS software. 
We started to simplify out sysadmin life  making RPM packages of most of 
the GIS software stack. For a dependency issue we had to abandon the 
upstream 8.1 PostgreSQL and install at least a 8.2 version. Taking the 
package from Fedora 8 and rebuilding it for x86_64 went smoothly. 
Unfortunatly the same is not true for i386. It stops with:

 checking for collateindex.pl... no
checking for sgmlspl... no
checking thread safety of required library functions... no
configure: error: thread test program failed
This platform is not thread-safe.  Check the file 'config.log' for the
exact reason.

You can use the configure option --enable-thread-safety-force to force
threads to be enabled.  But you must then run the program in
src/test/thread and add locking function calls to your applications to
guarantee thread safety.
error: Bad exit status from 
/home/peter.hopfgartner/rpmbuild/tmp/rpm-tmp.77591 (%build)


RPM build errors:
Bad exit status from 
/home/peter.hopfgartner/rpmbuild/tmp/rpm-tmp.77591 (%build)


The temporary file is:

#!/bin/sh

  RPM_SOURCE_DIR=/home/peter.hopfgartner/rpmbuild/SOURCES
  RPM_BUILD_DIR=/home/peter.hopfgartner/rpmbuild/BUILD
  RPM_OPT_FLAGS=-O2 -g -march=i386 -mcpu=i686
  RPM_ARCH=i386
  RPM_OS=linux
  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
  RPM_DOC_DIR=/usr/share/doc
  export RPM_DOC_DIR
  RPM_PACKAGE_NAME=postgresql
  RPM_PACKAGE_VERSION=8.2.11
  RPM_PACKAGE_RELEASE=1
  export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
  
RPM_BUILD_ROOT=/home/peter.hopfgartner/rpmbuild/tmp/postgresql-8.2.11-1-root
  export RPM_BUILD_ROOT
 
 
  set -x
  umask 022
  cd /home/peter.hopfgartner/rpmbuild/BUILD
cd postgresql-8.2.11

CFLAGS=${CFLAGS:--O2 -g -march=i386 -mcpu=i686} ; export CFLAGS
CXXFLAGS=${CXXFLAGS:--O2 -g -march=i386 -mcpu=i686} ; export CXXFLAGS

# Strip out -ffast-math from CFLAGS
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`


  CFLAGS=${CFLAGS:--O2 -g -march=i386 -mcpu=i686} ; export CFLAGS ;
  CXXFLAGS=${CXXFLAGS:--O2 -g -march=i386 -mcpu=i686} ; export CXXFLAGS ;
  FFLAGS=${FFLAGS:--O2 -g -march=i386 -mcpu=i686} ; export FFLAGS ;
  ./configure --host=i686-redhat-linux-gnu --build=i686-redhat-linux-gnu \
--target=i386-redhat-linux \
--program-prefix= \
 --prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sharedstatedir=/usr/com \
--mandir=/usr/share/man \
--infodir=/usr/share/info --disable-rpath \
--with-perl \
--with-tcl \
--with-tclconfig=/usr/lib \
--with-python \
--with-openssl \
--with-pam \
--with-krb5 \
--enable-nls \
--enable-thread-safety \
--sysconfdir=/etc/sysconfig/pgsql \
--datadir=/usr/share/pgsql \
--with-docdir=/usr/share/doc

make  all
make  -C contrib all
make  -C contrib/xml2 all

# Have to hack makefile to put correct path into tutorial scripts
sed s|C=\`pwd\`;|C=/usr/lib/pgsql/tutorial;|  src/tutorial/Makefile  
src/tutorial/GNUmakefile
make  -C src/tutorial NO_PGXS=1 all
rm -f src/tutorial/GNUmakefile

pushd src/test/regress
make all
make MAX_CONNECTIONS=5 check
make clean
popd

pushd src/test/regress
make RPMTESTING=1 all
popd

   PYTHON=/usr/bin/python
   python_version=`${PYTHON} -c import sys; print sys.version[:3]`
   python_prefix=`${PYTHON} -c import sys; print sys.prefix`
   python_includespec=-I${python_prefix}/include/python${python_version}

   pushd PyGreSQL

   gcc $CFLAGS -fpic -shared -o _pgmodule.so ${python_includespec} 
-I../src/interfaces/libpq -I../src/include -L../src/interfaces/libpq 
-lpq pgmodule.c

   popd

   pushd Pgtcl
   # pgtcl's configure only handles one include directory :-(
   ./configure --prefix=/usr \
 --libdir=/usr/lib \
 --with-tcl=/usr/lib \
 --with-postgres-include=../src/interfaces/libpq -I../src/include \
 --with-postgres-lib=../src/interfaces/libpq
   # note: as of pgtcl 1.5.2, its makefile is not parallel-safe
   make all
   popd

exit 0

Does anybody have any hint how to proceed?

Regards,

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos