CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum/yum.conf


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » System Level

CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum/yum.confLast Modified: Sep 26, 2011, 3:10 pm
With a DirectAdmin install on CentOS 6, you may encounter this error:

CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum/yum.conf

In this specific case, it's not a missing yum.conf, but rather a broken link to the newer curl library from python.

Until a decision is made whether or not to exclude curl from custombuild, the solution is the following:

cd /usr/local/lib
mv libcurl.so.4.2.0 /root/libcurl.so.4.2.0.moved
ln -s /usr/lib/libcurl.so libcurl.so.4.2.0

Related thread


Sept 26, 2011 - Update

Custombuild has been updated to allow the curl compile to be disabled. To do this (if you've got CentOS 6), use:

cd /usr/local/directadmin/custombuild
./build update
./build set curl no

Then remove custombuild compiled curl libraries/includes, (be very careful with this. Only minimal testing has been done with it)

cd /root
mkdir curl
cd curl
mv /usr/local/lib/libcurl* .
mv /usr/local/include/curl .
ldconfig

and ensure php still works and is correctly re-linked,  eg:

[root@es6 ~]# ldd /usr/local/bin/php | grep curl
       libcurl.so.4 => /usr/lib/libcurl.so.4 (0x005df000)

The replacement of the source-compiled version of curl is to use the rpms instead, eg:

yum install libcurl-devel

as the libcurl and curl rpms should already be there by default, as yum needs them.

It was noted that the "--with-curl=/usr/local/lib \" line in the configure.php5 did not hurt the inclusion of curl into php during the php compile, so will be left, unless new information about it surfaces.

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST