LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-29-2013, 06:26 AM   #1
tomkin
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
ODBC extension not working anymore


Hello,

I am quite a newby in Linux. I tried to install unixODBC and FreeTDS and suddenly there was no ODCB info shown anymore in the phpinfo. But in the "Additional .ini files parsed" section I still see /etc/php5/conf.d/odbc.ini and /etc/php5/conf.d/pdo_odbc.ini

In Apache's error log I found this:
Quote:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php5/extensions/odbc.so' - libodbc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php5/extensions/pdo_odbc.so' - libodbc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
Yesterday I had problems with unixODBC libraries which could not be found. After I did ldconfig -p and ldconfig -v these worked again. Maybe this caused this new error?

Can anybody give me a hint, how I could fix this issue?

Last edited by tomkin; 04-29-2013 at 08:06 AM.
 
Old 04-30-2013, 10:46 PM   #2
Adickel
LQ Newbie
 
Registered: Jul 2009
Posts: 14

Rep: Reputation: 0
check permissions, logicals

Check the permissions on that file as well as make sure any logical that need to be setup are in place. Make sure the ODBC user has access to it, also what distro are you running?
 
Old 05-08-2013, 08:10 PM   #3
tomkin
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Problem solved.

libodbc.so.1 was missing. I deleted the old version of unixODBC where libodbc.so.1 was used. Now it's libodbc.so.2. Somewhere there was still a reference to libodbc.so.1. So I made a symbolic link named libodbc.so.1 to libodbc.so

Thanks for your help!
 
Old 07-27-2021, 09:01 AM   #4
tix
Member
 
Registered: May 2011
Posts: 31
Blog Entries: 6

Rep: Reputation: 1
FreeTDS + ODBC + UNIXODBC

2021 - BACK TO THE FUTURE:
---------------------------

I know that this post is old, but my reply can point a desperate soul in the right direction:

1) You are using odbc and the command "isql" works just fine
2) You are using FreeTDS and the command "tsql" works just fine
3) Trouble is running the php scripts that have calls to odbc via FreeTDS -> keeps giving errors

Kindly read:
https://www.linuxquestions.org/quest...-5-13-5-38621/

Cheers happy souls!

Powered By Slackware Linux!!!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio not working anymore robbbert Linux - Hardware 5 05-06-2006 01:58 AM
TightVNC not working anymore... OverrRyde Linux - Software 10 12-01-2005 04:57 PM
ip_conntrack_irc not working anymore alienDog Linux - Security 1 11-13-2005 04:31 PM
apache not working anymore :( Jestrik Linux - Networking 5 03-28-2004 11:49 AM
Squirrelmail not working anymore nuzzy Linux - Software 3 08-28-2003 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration