Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I am getting these errors

PHP Startup: Unable to load dynamic library '/ect/php.d/oci8.so' -/ect/php.d/oci8.so: cannot open shared object file: No such file or directory in Unknown on line 0

PHP Startup: Unable to load dynamic library '/ect/php.d/odbc.so' -/ect/php.d/odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0

Now I don't know where to set the library path in linux redhat. Can anybody help me

What I have tried:

I read this document

Installation of Oracle extensions for PHP - Remi's RPM repository - Blog[^]

but I don't understand how to solve it.
Posted
Comments
Richard MacCutchan 24-Nov-21 8:07am    
You have spelled the root directory incorrectly, it is etc not ect.
Member 14362033 1-Dec-21 3:47am    
Thanks, Richard for your reply but I can't find where this path is written.
Richard MacCutchan 1-Dec-21 4:15am    
It is an environment variable which you would normally set in your .profile settings, with statements like:
LD_LIBRARY_PATH=/etc/php.d
export LD_LIBRARY_PATH

You can check the existing setting with the "env" command in a terminal window.
Member 14362033 7-Dec-21 1:00am    
Hello Richard, Can you tell me where can I find this env file? location of this file?
[no name] 23-Jan-23 16:56pm    
On my fedora at the cmdln:
$> which env

gives the path to env executable

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900