Discussion:
ATS 7.0.0 on CentOS Starting Error libtcl8.6.so
Norbert Naveen
2017-06-19 15:13:26 UTC
Permalink
Dear all

I have setup ATS 7.0.0. on Cent OS 7.3

./configure --prefix=/opt/ats --with-tcl=/opt/ActiveTcl-8.6/lib



When I Start the Server

[***@prxy trafficserver]# /opt/ats/bin/trafficserver start

Starting Apache Traffic Server: [FAILED]



In the File traffic_server.stderr I see Error as below

/opt/ats/bin/traffic_cop: error while loading shared libraries:
libtcl8.6.so: cannot open shared object file: No such file or directory



[***@prxy trafficserver]# locate libtcl8.6.so

/opt/ActiveTcl-8.6/lib/libtcl8.6.so





Kindly help

Thanks

Naveen
Reindl Harald
2017-06-19 16:02:51 UTC
Permalink
Post by Norbert Naveen
I have setup ATS 7.0.0. on Cent OS 7.3
./configure --prefix=/opt/ats --with-tcl=/opt/ActiveTcl-8.6/lib
When I Start the Server
Starting Apache Traffic Server: [FAILED]
In the File traffic_server.stderr I see Error as below
libtcl8.6.so: cannot open shared object file: No such file or directory
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
well, your linker surely does not look into /opt/ActiveTcl-8.6/lib/, at
least not by default

/etc/ld.so.conf.d/ is your friend followed by issue "ldconfig" after changes

[***@honeypot:~]$ cat /etc/ld.so.conf.d/mysqlclient16-x86_64.conf
/usr/lib64/mysql
Naveen
2017-06-20 04:07:54 UTC
Permalink
Hello

I already have the files and linker as below
[***@prxy bin]# cd /etc/ld.so.conf.d/

[***@prxy ld.so.conf.d]# ls -ltr
total 28
-rw-r--r--. 1 root root 22 Jun 10 2014 qt-x86_64.conf
-rw-r--r--. 1 root root 19 Mar 6 2015 dyninst-x86_64.conf
-rw-r--r--. 1 root root 17 Nov 5 2016 libiscsi-x86_64.conf
-r--r--r--. 1 root root 63 Nov 22 2016 kernel-3.10.0-514.el7.x86_64.conf
-rw-r--r--. 1 root root 36 Jun 19 20:48 trafficserver-x86_64.conf
-rw-r--r--. 1 root root 17 Jun 20 09:29 mariadb-x86_64.conf
-rw-r--r--. 1 root root 18 Jun 20 09:29 mysqlclient16-x86_64.conf



cat trafficserver-x86_64.conf
/opt/ActiveTcl-8.6/lib/libtcl8.6.so

cat mariadb-x86_64.conf and also mysqlclient16-x86_64.conf
/usr/lib64/MySQL


I still get the Error
/opt/ats/bin/traffic_cop: error while loading shared libraries:
libtcl8.6.so: cannot open shared object file: No such file or directory

Thankful for any help
Rgds





--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/ATS-7-0-0-on-CentOS-Starting-Error-libtcl8-6-so-tp3177p3179.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.
Naveen
2017-06-20 04:15:18 UTC
Permalink
I did the following to get it working
cd /lib64
ln -s /opt/ActiveTcl-8.6/lib/libtcl8.6.so libtcl8.6.so

And now ATS is up and Running

Thanks
Naveen



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/ATS-7-0-0-on-CentOS-Starting-Error-libtcl8-6-so-tp3177p3180.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.
Reindl Harald
2017-06-20 05:42:50 UTC
Permalink
Post by Naveen
Hello
I already have the files and linker as below
and *did* you run ldconfig too?
i guess no
Post by Naveen
total 28
-rw-r--r--. 1 root root 22 Jun 10 2014 qt-x86_64.conf
-rw-r--r--. 1 root root 19 Mar 6 2015 dyninst-x86_64.conf
-rw-r--r--. 1 root root 17 Nov 5 2016 libiscsi-x86_64.conf
-r--r--r--. 1 root root 63 Nov 22 2016 kernel-3.10.0-514.el7.x86_64.conf
-rw-r--r--. 1 root root 36 Jun 19 20:48 trafficserver-x86_64.conf
-rw-r--r--. 1 root root 17 Jun 20 09:29 mariadb-x86_64.conf
-rw-r--r--. 1 root root 18 Jun 20 09:29 mysqlclient16-x86_64.conf
cat trafficserver-x86_64.conf
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
Loading...