RE: [PHP-INST] PHP with Openlink + Apache
| From: | Andrew Hill | Date: | Wed, 22 Nov 2000 13:36:20 +0000 |
| Subject: | RE: [PHP-INST] PHP with Openlink + Apache | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-881@lists.php.net to get a copy of this message | ||
Iran,
If you have set LD_LIBRARY_PATH to /usr/local/openlink/odbcsdk/lib, verified
it is actually set before compiling, and you still have this problem, then
you can only have permission problems. The user that compilies this has to
have permissions on the directories. Try doing a: ls -al
/usr/local/openlink/odbcsdk/lib (or this) touch
/usr/local/openlink/odbcsdk/lib/testfile from your build directory.
You will most likley get permission denied errors, highlighting your
problem.
Best regards,
Andrew
----------------------------------------------------
Andrew Hill
Director Technology Evangelism
OpenLink Software
http://www.openlinksw.com
XML & E-Business Infrastructure Technology Provider
> -----Original Message-----
> From: Iran [mailto:iranph@toledo.br]
> Sent: Wednesday, November 22, 2000 7:20 AM
> To: ahill@openlinksw.com; php-install@lists.php.net
> Subject: RE: [PHP-INST] PHP with Openlink + Apache
>
>
> so I think I have the correct file. only the SDK, 'cause I only need
> support for odbc.
>
> it's installed in /usr/local/openlink. I've got the following
> directories and files inside:
>
> bin/
> lib/
> odbcsdk/
> odbcsdk/doc/
> odbcsdk/doc/odbc.doc
> odbcsdk/doc/odbc.ini
> odbcsdk/doc/odbcinst.ini
> odbcsdk/driver/
> odbcsdk/driver/odbc_src.taz
> odbcsdk/examples
> odbcsdk/examples/Makefile
> odbcsdk/examples/odbctest
> odbcsdk/examples/odbctest.c
> odbcsdk/include
> odbcsdk/include/iodbc.h
> odbcsdk/include/isql.h
> odbcsdk/include/isqlext.h
> odbcsdk/include/udbcext.h
> odbcsdk/lib/
> odbcsdk/lib/libiodbc.la
> odbcsdk/lib/libiodbc.a
> odbcsdk/lib/libiodbc.so.2.0.12
> odbcsdk/lib/libiodbc.so.2
> odbcsdk/lib/libiodbc.so
> odbcsdk/lib/oplodbc.la
> odbcsdk/lib/oplodbc.a
> odbcsdk/lib/oplodbc.so.1.0.0
> odbcsdk/lib/oplodbc.so.1
> odbcsdk/lib/oplodbc.so
>
> according the error (see below), the file libiodbc.so.2 is missing or
> can't be found, but I have this file in the correct directory, I think.
> I tried to set LD_LIBRARY_PATH to /usr/local/openlink/odbcsdk/lib but
> it didn't work too.
>
> gcc -DLINUX=2 -I/home/iran/php-4.0.3pl1 -I/home/iran/php-4.0.3pl1/main
> -I/home/iran/php-4.0.3pl1/main -I/home
> /iran/php-4.0.3pl1/Zend -I/home/iran/php-4.0.3pl1/Zend
> -I/home/iran/php-4.0.3pl1/TSRM -I/home/iran/php-4.0.3pl
> 1/TSRM -I/home/iran/php-4.0.3pl1 -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED
../apaci -o gen_test_char
> gen_test_char.o -Wl,-rpath,/usr/local/lib/mysql -rdynamic
> -L/usr/local/lib/mysql -Lmodules/php4 -L../modules
> /php4 -L../../modules/php4 -lmodphp4 -L/usr/local/openlink/odbcsdk/lib
> -liodbc -lpam -ldl -lmysqlclient -lgd
> -lgdbm -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt
> ./gen_test_char >test_char.h
> ./gen_test_char: error in loading shared libraries: libiodbc.so.2:
> cannot open shared object file: No such fil
> e or directory
>
> thanks.
>
> iran
>
> On Tue, 21 Nov 2000 10:30:57 -0500, Andrew Hill wrote:
>
> >Iran,
> >
> >The l3k file is the sdk. If you just want odbc support, and do not want
> >Openlink's drivers, test apps, GUI config, etc. then that is all
> you need,
> >as long as you use the --with-iodbc option.
> >
> >If you want sample apps, client-side drivers for a Multi-Tier connection,
> >and GUI admin tools, then use both apps.
> >
> >You can get the l3brzzzz.taz by going to www.openlinksw.com and following
> >the Product Availability link. Choose Multi-Tier, and then choose Linux
> >glibc 2.1.1 for your client and server. Don't bother choosing
> a database.
> >
> >The install.sh is availabe there as well.
> >
> >If you have Openlink specific problems, please open the support
> case as to
> >avoid non-PHP traffic on the list.
> >A support case is free at
> >http://www.openlinksw.com/support/suppindx.htm
> >
> >Also, there is a PHP-ODBC Howto at http://www.iodbc.org.
> >It's a
> bit out of
> >date (refers to PHP3) but is pretty much spot on for the
> producere you need
> >to follow.
> >
> >Best regards,
> >Andrew
> >----------------------------------------------------
> >Andrew Hill
> >Director Technology Evangelism
> >OpenLink Software
> >http://www.openlinksw.com
> >XML & E-Business Infrastructure Technology Provider
> >
> >
> >
> >
> >
> >> -----Original Message-----
> >> From: Iran [mailto:iranph@toledo.br]
> >> Sent: Tuesday, November 21, 2000 10:23 AM
> >> To: ahill@openlinksw.com; php-install@lists.php.net
> >> Subject: RE: [PHP-INST] PHP with Openlink + Apache
> >>
> >>
> >> well, I've gotten l3kozzzz.taz.
> >> where do I get the other one? are both necessary?
> >>
> >> thanks.
> >>
> >> iran
> >>
> >>
> >> On Tue, 21 Nov 2000 08:04:57 -0500, Andrew Hill wrote:
> >>
> >> >Iran,
> >> >
> >> >Either:
> >> >
> >> >1. LD_LIBRARY_PATH isn't set to the openlink/lib directory (before
> >> >attempting the make)
> >> >2. The user you are make'ing as cannot read the openlink/lib
> directories
> >> >3. You are missing some essential files. You need (for a linux
> >> glibc2.1.1
> >> >box)
> >> > l3kozzzz.zip (iODBC sdk)
> >> > l3brzzzz.zip (Openlink request broker archive, contains
> >> server-side stuff
> >> >as well as client driver library, header files, GUI admin for
> your DSN's
> >> >etc)
> >> > install.sh (install script)
> >> >
> >> >If these files are in an /usr/openlink or /home/openlink/ or whatever,
> >> >running the install.sh will put all the files in the appropriate
> >> places. A
> >> >subsequent openlinks.sh file will be created - make sure that you: .
> >> >openlink.sh (notice the dot) before building any php/apache.
> >> Double check
> >> >that the relevant environment variables are pointing to the openlink
> >> >directories via an: env
> >> >
> >> >Hope this helps.
> >> >
> >> >Feel free to open a free support case at
> >> >http://www.openlinksw.com/support/suppindx.htm if
> >> >you need further
> >> >assistance.
> >> >
> >> >Best regards,
> >> >Andrew
> >> >----------------------------------------------------
> >> >Andrew Hill
> >> >Director Technology Evangelism
> >> >OpenLink Software
> >> >http://www.openlinksw.com
> >> >XML & E-Business Infrastructure Technology Provider
> >> >
> >> >
>
>
>
>