RE: Zend Free Edition under Ubuntu and Segmentation Fault

  • From: "Dunbar, Norman" <norman.dunbar@xxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 15 Oct 2009 10:39:41 +0100

Morning Martin,

>>      Every time I call php such as in the following example,
>> this is what happens:
>> 
>> martin@tctestlog:~$ php --interactive
>> Interactive mode enabled
>> 
>> At this point, I have nothing further to do so I send a CTRL-D
>> to exit.
>> 
>> Segmentation fault

Have you made sure that you removed the old PHP stuff that was installed
before you installed Zend? It could be that you have incompatible bits
of PHP from both Zend and the default Ubuntu install running together.

I've installed Zend Core for Oracle on Suse Linux Enterprise Server 10
and it went in easily and works. I did not have any PHP packages
installed before this.

If you type "whereis php" what do you get back?  I get /usr/bin/php but
that might not be truly helpful if Ubuntu puts it's own stuff there as
well.

One other thing to try, even though you get a segfault, is check that
you are running the Zend version of php:

Create a script phpinfo.php:

<?php
phpinfo();
?>

Then run it with :

php phpinfo.php | grep -i zend

If you get a load of stuff out abouit zend, then all should be well and
you are running the zend version.

Next up is check in your package manager (apt?) for any php packages
that are installed. On SLES I have rpm, so :

rpm -qa | grep -i php

The results I get are:

php5-zlib-5.1.2-29.35
php5-pear-5.1.2-29.35
php5-5.1.2-29.35
apache2-mod_php5-5.1.2-29.35

You might find tat you have additional modules installed, but the above
is everything I have here, and it works. But I did have a load of SLES
installed stuff before I started and I removed those before installing
the Zend all-in-one version.


Next, check for the current version of php as found on the command line:

php --version

PHP 5.1.2 with Suhosin-Patch 0.9.6 (cli) (built: May 18 2007 12:14:11)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

This confirms that I am running 5.1.2 as my rpm query shows plus it
confirms that the command line version I'm running is indeed the Zend
version.


Unfortunately, I can't offer any further advice on what to do I'm
afraid. Everything is working fine for me here.


Good luck.

Cheers,
Norman.

Norman Dunbar
Dunbar IT Consultants Ltd
Orchard House
10a Greenacre Park Mews
Rawdon
Leeds
LS19 6RT

Tel: 0779 3292 984
Tel: 0773 4531 439








>> 
>> Let's try a script:
>> 
>> martin@tctestlog:~$ php -f oscript
>>    Segmentation fault
>> 
>>      The sqlnet.ora and tnsnames.ora files are being found
>> according to the  output from strace -e trace=file. This is in
>> accordance with the environment variables I have been setting so
>> this part appears to be working:
>> 
>>     export LD_LIBRARY_PATH=/usr/local/Zend/Core/lib
>> export ORACLE_SID='orcl'
>> export ORACLE_HOME='/usr/local/etc/oracle'
>> 
>>      Any ideas as to why something is still unhappy?
>> 
>> This is an edition of ubuntu that is rather new if that rings
>> any bells.
>> 
>>      It is amazing just how difficult it has been to get this
>> one little project off the ground. Thanks for any good ideas.
>> 
>> Martin McCormick WB5AGZ  Stillwater, OK 
>> Systems Engineer
>> OSU Information Technology Department Telecommunications 
>> Services Group
>> --
>> //www.freelists.org/webpage/oracle-l
>> 
>> 
>> 


Information in this message may be confidential and may be legally privileged. 
If you have received this message by mistake, please notify the sender 
immediately, delete it and do not copy it to anyone else.   We have checked 
this email and its attachments for viruses. But you should still check any 
attachment before opening it. We may have to make this message and any reply to 
it public if asked to under the Freedom of Information Act, Data Protection Act 
or for litigation.  Email messages and attachments sent to or from any 
Environment Agency address may also be accessed by someone other than the 
sender or recipient, for business purposes.  If we have sent you information 
and you wish to use it please read our terms and conditions which you can get 
by calling us on 08708 506 506.  Find out more about the Environment Agency at 
www.environment-agency.gov.uk

Information in this message may be confidential and may be legally privileged. 
If you have received this message by mistake, please notify the sender 
immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should 
still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under 
the Freedom of Information Act, Data Protection Act or for litigation.  Email 
messages and attachments sent to or from any Environment Agency address may 
also be accessed by someone other than the sender or recipient, for business 
purposes.

If we have sent you information and you wish to use it please read our terms 
and conditions which you can get by calling us on 08708 506 506.  Find out more 
about the Environment Agency at www.environment-agency.gov.uk
--
//www.freelists.org/webpage/oracle-l


Other related posts: