euglug.org

[작성자:] admin

  • [Eug-lug] Re: [EUGLUG] PHP Config Issues



    Jim BeardMon Nov 15 17:40:30 PST 2004

    I updated the slocate db, and it sees things it didn't now.  Good stuff.
    
    So where I'm at now is I have an rpm that depends on 
    libmysqlclient.so.10 and I have libmysqlclient.so.12 installed.  Even 
    if I create a symlink for libmysqlclient.so.10 library, rpm still won't 
    want to install the rpm will it?  Thats what I'm currently wondering 
    about...
    
    On Nov 15, 2004, at 5:21 PM, larry price wrote:
    
    > if locate isn't finding things that you know are on the machine you
    > can run the updatedb script
    > (in /usr/local/sbin on RH i think...)
    > it takes a few minutes but can save you lots of time.
    >
    > On Mon, 15 Nov 2004 16:48:38 -0800, Jim Beard <beard at counterclaim.com> 
    > wrote:
    >> Now when I try to install the php-mysql rpm I still get the dependence
    >> for the libmysqlclient.so.10 library.  rpm -q --provides tells me that
    >> the shared rpm I just installed provides libmysqlclient.so.12.  So I'm
    >> assuming I could do the linking trick mentioned before ( I know I've
    >> used this trick on other machines ) but, that might not get me past 
    >> the
    >> rpm dependency issue.  Should I just force the rpm install and link 
    >> the
    >> library?  Any thoughts?
    >
    > my rule of thumb on this is that i'll create a link to a higher
    > version number but not to a lower version number, every occasionally
    > though someone will decide to break backward compatibility,
    > nice developers will mention this in the changelogs.
    >
    > also test that that the combination works ;-)
    >
    >
    >
    > -- 
    > http://Zoneverte.org -- information explained
    > Do you know what your IT infrastructure does?
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    Jim Beard
    counterclaim.com, Inc
    http://www.counterclaim.com
    http://openefm.sourceforge.net
    (800) 264-8145
    
    
  • [Eug-lug] Re: [EUGLUG] PHP Config Issues



    larry priceMon Nov 15 17:21:43 PST 2004

    if locate isn't finding things that you know are on the machine you
    can run the updatedb script
    (in /usr/local/sbin on RH i think...)
    it takes a few minutes but can save you lots of time.
    
    On Mon, 15 Nov 2004 16:48:38 -0800, Jim Beard <beard at counterclaim.com> wrote:
    > Now when I try to install the php-mysql rpm I still get the dependence
    > for the libmysqlclient.so.10 library.  rpm -q --provides tells me that
    > the shared rpm I just installed provides libmysqlclient.so.12.  So I'm
    > assuming I could do the linking trick mentioned before ( I know I've
    > used this trick on other machines ) but, that might not get me past the
    > rpm dependency issue.  Should I just force the rpm install and link the
    > library?  Any thoughts?
    
    my rule of thumb on this is that i'll create a link to a higher
    version number but not to a lower version number, every occasionally
    though someone will decide to break backward compatibility,
    nice developers will mention this in the changelogs.
    
    also test that that the combination works ;-)
    
    
    
    -- 
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] Re: [EUGLUG] PHP Config Issues



    Jim BeardMon Nov 15 16:48:38 PST 2004

    Awesome, my first google hit found the bugzilla entry for the issue you 
    were talking about, I followed a work around posted there, basically 
    removing old db files and rebuilding the db, and that cleared up my rpm 
    issues.  I then installed my MySQL-shared-4.0.21 rpm no problem.  3 
    cheers for not needing to reboot.
    
    Now when I try to install the php-mysql rpm I still get the dependence 
    for the libmysqlclient.so.10 library.  rpm -q --provides tells me that 
    the shared rpm I just installed provides libmysqlclient.so.12.  So I'm 
    assuming I could do the linking trick mentioned before ( I know I've 
    used this trick on other machines ) but, that might not get me past the 
    rpm dependency issue.  Should I just force the rpm install and link the 
    library?  Any thoughts?
    
    On Nov 15, 2004, at 4:17 PM, Ken Barber wrote:
    
    > On Monday 15 November 2004 4:11 pm, Jim Beard wrote:
    >> I found an rpm finally for this version only now rpm has stopped
    >> responding on the machine.  Have any of you encountered this?  rpm
    >> hangs when I try to use it and can't be killed.  I'm thinking this
    >> might go away if I reboot the machine,
    >
    > There's a lock file that didn't get deleted.  You're right, rebooting 
    > the
    > machine will fix it but you don't have to reboot.
    >
    > I'm busy today writing an article today and don't have time to look up 
    > the URL
    > for you, but the fix is well-known to Red Hat folks and should turn up 
    > near
    > the top of a well-phrased Google search.
    >
    > I hope this helps,
    >
    > Ken
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    Jim Beard
    counterclaim.com, Inc
    http://www.counterclaim.com
    http://openefm.sourceforge.net
    (800) 264-8145
    
    
  • [Eug-lug] PHP Config Issues



    Jim BeardMon Nov 15 16:33:40 PST 2004

    I might look into getting apt-rpm, I assume that would help RPM 
    management a bit.  I was a big fan of the apt system on debian.
    
    When I do 'locate libmysqlclient' I get nothing.  So I'm assuming I 
    really do need to install the shared libraries.  Right now I'm still 
    dealing with an un-responsive rpm program.... Maybe I will just give up 
    and reboot :P
    
    On Nov 15, 2004, at 4:13 PM, Ken Barber wrote:
    
    > On Monday 15 November 2004 1:28 pm, Jim Beard wrote:
    >> RPMs definitely seem like the best way to handle this.  I believe I 
    >> can
    >> simply install the php-mysql-4.2.2 rpm and it will add the mysql
    >> functionality I need.  However when I attempt to do this I get a 
    >> failed
    >> dependency with some mysql libraries, libmysqlclient.so.10.  I have
    >> installed the mysql client via rpm, but it must not have included the
    >> needed shared libraries...  So now I'm left with replacing mysql 
    >> client
    >> rpms as my best bet, at least as near as I can figure.
    >
    > When the problem is a missing library, often the cause is that you 
    > have a
    > different version of the library.  Sometimes you can get away with 
    > making a
    > symlink named 'libmysqlclient.so.10' to the library file that is on 
    > your
    > system.
    >
    > Sometimes you need to install or update the package that provides the 
    > missing
    > library at the same time (i.e., on the same command line) that you 
    > install
    > the main package.
    >
    > If another version of this libary already exists on your system, you 
    > can find
    > out which package provides it this way:
    >
    > First, get the filename of the existing library:
    >
    > $ locate libmysqlclient.so
    >
    > Then query the rpm database with its full pathname (you might have to 
    > be root
    > to do this):
    >
    > # rpm -q --whatprovides path/to/file
    >
    > You can get yourself out (or at least most of the way out) of RPM Hell 
    > by
    > downloading the apt-rpm package for RHL 9 from freshrpms.net and then 
    > issuing
    > apt-get commands to install/upgrade your packages.  Apt-rpm is a front 
    > end
    > for RPM that resolves and automatically downloads all of the 
    > dependencies for
    > you.  The newer releases from Red Hat (specifically, Fedora Core 2 and 
    > 3) are
    > now shipping with a similar tool (yum) that is now the standard for 
    > package
    > management on Red Hat distros.
    >
    > I hope this helps.
    >
    > Ken
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    Jim Beard
    counterclaim.com, Inc
    http://www.counterclaim.com
    http://openefm.sourceforge.net
    (800) 264-8145
    
    
  • [Eug-lug] Re: [EUGLUG] PHP Config Issues



    Ken BarberMon Nov 15 16:17:40 PST 2004

    On Monday 15 November 2004 4:11 pm, Jim Beard wrote:
    > I found an rpm finally for this version only now rpm has stopped
    > responding on the machine.  Have any of you encountered this?  rpm
    > hangs when I try to use it and can't be killed.  I'm thinking this
    > might go away if I reboot the machine,
    
    There's a lock file that didn't get deleted.  You're right, rebooting the 
    machine will fix it but you don't have to reboot.
    
    I'm busy today writing an article today and don't have time to look up the URL 
    for you, but the fix is well-known to Red Hat folks and should turn up near 
    the top of a well-phrased Google search.
    
    I hope this helps,
    
    Ken
    
  • [Eug-lug] PHP Config Issues



    larry priceMon Nov 15 16:17:22 PST 2004

    On Mon, 15 Nov 2004 13:28:46 -0800, Jim Beard <beard at counterclaim.com> wrote:
    > RPMs definitely seem like the best way to handle this.  I believe I can
    > simply install the php-mysql-4.2.2 rpm and it will add the mysql
    > functionality I need.  However when I attempt to do this I get a failed
    > dependency with some mysql libraries, libmysqlclient.so.10.  I have
    > installed the mysql client via rpm, but it must not have included the
    > needed shared libraries...  So now I'm left with replacing mysql client
    > rpms as my best bet, at least as near as I can figure.
    
    first look and see if libmysqlclient.so is there, it should be a link
    to libmysqlclient.so.10 or whatever the current version of the library
    is, if it's there and the directory is in your library search path you
    probably need to run ldconfig
    
    > 
    > I don't see the rfc822.h on a locate command, but maybe by using rpm
    > stuffs I'll get around that compile time issue.
    > 
    A quick and dirty work around would be to install mutt, and make sure
    it gets the source-rpms for all dependencies.
    
    Are you installing squirrelmail?
    
    -- 
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] PHP Config Issues



    Ken BarberMon Nov 15 16:13:22 PST 2004

    On Monday 15 November 2004 1:28 pm, Jim Beard wrote:
    > RPMs definitely seem like the best way to handle this.  I believe I can
    > simply install the php-mysql-4.2.2 rpm and it will add the mysql
    > functionality I need.  However when I attempt to do this I get a failed
    > dependency with some mysql libraries, libmysqlclient.so.10.  I have
    > installed the mysql client via rpm, but it must not have included the
    > needed shared libraries...  So now I'm left with replacing mysql client
    > rpms as my best bet, at least as near as I can figure.
    
    When the problem is a missing library, often the cause is that you have a 
    different version of the library.  Sometimes you can get away with making a 
    symlink named 'libmysqlclient.so.10' to the library file that is on your 
    system. 
    
    Sometimes you need to install or update the package that provides the missing 
    library at the same time (i.e., on the same command line) that you install 
    the main package.
    
    If another version of this libary already exists on your system, you can find 
    out which package provides it this way:
    
    First, get the filename of the existing library:
    
    $ locate libmysqlclient.so
    
    Then query the rpm database with its full pathname (you might have to be root 
    to do this):
    
    # rpm -q --whatprovides path/to/file
    
    You can get yourself out (or at least most of the way out) of RPM Hell by 
    downloading the apt-rpm package for RHL 9 from freshrpms.net and then issuing 
    apt-get commands to install/upgrade your packages.  Apt-rpm is a front end 
    for RPM that resolves and automatically downloads all of the dependencies for 
    you.  The newer releases from Red Hat (specifically, Fedora Core 2 and 3) are 
    now shipping with a similar tool (yum) that is now the standard for package 
    management on Red Hat distros.
    
    I hope this helps.
    
    Ken
    
  • [Eug-lug] Re: [EUGLUG] PHP Config Issues



    Jim BeardMon Nov 15 16:11:33 PST 2004

    The MySQL website doesn't seem to have any rh9 specific rpms that I 
    see, just general 'linux' rpms.  Also, I don't want to use the big 
    versions they have, I already have databases set up in a mysql 4.0.21 
    system and I'd like to keep it, but simply add the mysql-shared rpm too 
    it.  I found an rpm finally for this version only now rpm has stopped 
    responding on the machine.  Have any of you encountered this?  rpm 
    hangs when I try to use it and can't be killed.  I'm thinking this 
    might go away if I reboot the machine, I just hate rebooting machines 
    that have up times of over 4 months :P  Using a different shell does 
    not make it go away, rpm still hangs then.
    
    Jim
    
    On Nov 15, 2004, at 3:14 PM, Bill Essig wrote:
    
    > Mr. Beard, IO would suggest a redhat9 rpm, which should be available at
    > the mysql website... as for PHP integration, MySQL runs as a standalone
    > service on  a port (3306), and PHP will connect to it there, on the
    > loopback interface (127.0.0.1)
    >
    > Repectfully Submitted,
    > Andrew W. Wilson
    > Gopher Contracting
    >
    >> Howdy folks,
    >>
    >> 	I've been running into some fun issues with php and was wondering if
    >> anyone out there had some good advice for me.
    >> 	I have a RedHat 9.0 system, with apache 2.0 and php 4.2.2 installed.
    >> The problem is that I want to run a php program that uses the mysql 
    >> and
    >> imap modules in php.  Currently I do not have mysql compiled in.  My
    >> question is what is the best approach to getting it there?  I
    >> downloaded the 4.3.9 php source, and can compile in mysql support, but
    >> not imap support.  It complains about missing rfc822.h file.  So, I
    >> guess I need to grab this from somewhere to be able to compile it in?
    >> Also, am I going to shoot myself in the foot if I do a 'make install'
    >> of the 4.3.9 version on top of the 4.2.2 version?  Should I attempt to
    >> remove the 4.2.2 version first?  Is there a better way altogether that
    >> I'm not aware of to accomplish this?
    >
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    Jim Beard
    counterclaim.com, Inc
    http://www.counterclaim.com
    http://openefm.sourceforge.net
    (800) 264-8145
    
    
  • [Eug-lug] Re: [EUGLUG] PHP Config Issues



    larry priceMon Nov 15 15:51:42 PST 2004

    On Mon, 15 Nov 2004 18:14:24 -0500 (EST), Bill Essig <bill at rpgopher.com> wrote:
    > Mr. Beard, IO would suggest a redhat9 rpm, which should be available at
    > the mysql website... as for PHP integration, MySQL runs as a standalone
    > service on  a port (3306), and PHP will connect to it there, on the
    > loopback interface (127.0.0.1)
    > 
    you still need the mysql-client libraries so that your apps can talk
    to the server.
    
    
    -- 
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] Re: [EUGLUG] PHP Config Issues



    Bill EssigMon Nov 15 15:14:24 PST 2004

    Mr. Beard, IO would suggest a redhat9 rpm, which should be available at
    the mysql website... as for PHP integration, MySQL runs as a standalone
    service on  a port (3306), and PHP will connect to it there, on the
    loopback interface (127.0.0.1)
    
    Repectfully Submitted,
    Andrew W. Wilson
    Gopher Contracting
    
    > Howdy folks,
    >
    > 	I've been running into some fun issues with php and was wondering if
    > anyone out there had some good advice for me.
    > 	I have a RedHat 9.0 system, with apache 2.0 and php 4.2.2 installed.
    > The problem is that I want to run a php program that uses the mysql and
    > imap modules in php.  Currently I do not have mysql compiled in.  My
    > question is what is the best approach to getting it there?  I
    > downloaded the 4.3.9 php source, and can compile in mysql support, but
    > not imap support.  It complains about missing rfc822.h file.  So, I
    > guess I need to grab this from somewhere to be able to compile it in?
    > Also, am I going to shoot myself in the foot if I do a 'make install'
    > of the 4.3.9 version on top of the 4.2.2 version?  Should I attempt to
    > remove the 4.2.2 version first?  Is there a better way altogether that
    > I'm not aware of to accomplish this?