DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th January 2010
Simon Simon is offline
Port Guard
 
Join Date: Jan 2010
Posts: 30
Thanked 0 Times in 0 Posts
Unhappy trying to install php5-core

Hello,

I'm novice here, i'm trying to install the package : php5-core...
So i have done :
pkg_add -v php5-core 2> error.txt

Here my error.txt :
Can't install php5-core-5.2.10: lib not found stdc++.47.0

how can i install stdc++ lib ?
My project : install GLPI

Thank's
Reply With Quote
  #2   (View Single Post)  
Old 26th January 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,684
Thanked 214 Times in 189 Posts
Default

/usr/lib/libstdc++.so.47.0 should have been included in your base46.tgz file set, and would have been installed at OS install time. First things first, double check to see if the file is there. If it isn't, you have a damaged /usr/lib. (No, I cannot tell you why it isn't there, and yes, you will have to reinstall the OS to ensure any other damage is eliminated.)

But if it the library is there, it is always possible that php5-core needs the comp46.tgz fileset added, which includes /usr/lib/libstdc++a. If you have not installed the comp46.tgz fileset, and you do have /usr/lib/libstdc++.so.47.0, then follow FAQ 4.11 to add comp46.tgz to your system, and see if that solves your problem.
Reply With Quote
  #3   (View Single Post)  
Old 26th January 2010
Simon Simon is offline
Port Guard
 
Join Date: Jan 2010
Posts: 30
Thanked 0 Times in 0 Posts
Default tks

It isn't there !
Perhaps my install46.iso is damaged or bad sectors on hard disk ?.!
Thank's to your reply
Reply With Quote
  #4   (View Single Post)  
Old 26th January 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,684
Thanked 214 Times in 189 Posts
Default

It is unlikely that the .iso was damaged, because the ramdisk kernel will compare SHA checksums against the base46.tgz file. If you still have the .iso handy, you can inspect the contents of the base46.tgz fileset yourself.

It is unlikely that hard drive bad sectors are the cause, either, as you would get I/O error messages on sector reads, not missing files.

The most likely cause is a finger fumble of some kind while you were logged in as root. Best practice for admins is to use sudo(8) or su(1) and a normal user, to prevent mistakes of this kind.

If you do not have a recent backup which is undamaged, you -must- reinstall, as merely recreating the library file will not ensure a complete and undamaged system.
Reply With Quote
  #5   (View Single Post)  
Old 26th January 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,684
Thanked 214 Times in 189 Posts
Default

If my guess is correct, please note this comment from afterboot(8) man page:
Quote:
For security reasons, it is bad practice to log in as root during regular
use and maintenance of the system. Instead, administrators are encour-
aged to add a "regular'' user, add said user to the "wheel'' group,
then use the su(1) and sudo(8) commands when root privileges are re-
quired....
Reply With Quote
  #6   (View Single Post)  
Old 27th January 2010
Simon Simon is offline
Port Guard
 
Join Date: Jan 2010
Posts: 30
Thanked 0 Times in 0 Posts
Default

Hello,

I reinstalled OpenBSD and use command su to install it.
Thank's Jggimi!

Now an other question, perhaps stupid for you :
I done a "clear" command after install it, but i forgotten to read instruction after install php5-core. How can i review the instruction " ln -s ....) ??
Thank's
Reply With Quote
  #7   (View Single Post)  
Old 27th January 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,684
Thanked 214 Times in 189 Posts
Default

See the man page for pkg_info(8). Look for the -M option.
Reply With Quote
  #8   (View Single Post)  
Old 30th June 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,882
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Berumen View Post
install this package after updating php 5.1.2 to 5.1.6...
Berumen, this is the second time you have responded to a thread that is more than six months old. In general, threads are quite timely. If the OP hasn't responded within a week, most likely the discussion is over.

It is not clear why you are resurrecting such old threads.
Reply With Quote
  #9   (View Single Post)  
Old 30th June 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,684
Thanked 214 Times in 189 Posts
Default

I can think of only one possibility: Berumen is so angry about his PHP upgrade issue, he not only didn't notice dates, he didn't even notice the OS, nor the specific port/package discussion.

While I am not a PHP user, I can read CVS logs. The OpenBSD port of php5-core moved to 5.1.6 in 2006. It was included in OpenBSD 4.1-release. 4.1 has not been supported since 1 May 2008. The first release of php5 ported to OpenBSD was 5.1.4.

I think Berumen should be either complaining about a port of php5 on a different OS, or perhaps upstream to php development, if he ported these older releases himself.

This is the wrong thread in which to complain about his missing five hours.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SLiM core dumps marc OpenBSD Packages and Ports 7 31st October 2009 06:47 PM
fbsd 7.2 and php5 baraboom FreeBSD Ports and Packages 2 9th July 2009 08:33 PM
apache2.2+PHP5 edvinus OpenBSD Packages and Ports 1 29th June 2009 08:13 PM
Problem with upgrading php5-pcre and php5-mysql KernelPanic FreeBSD Ports and Packages 6 16th June 2008 10:00 PM
Dual core and FreeBSD ViperChief FreeBSD General 13 2nd June 2008 08:30 PM


All times are GMT. The time now is 03:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick