Expect установка в ubuntu 16.04

Тип статьи:
Авторская

Установка и настройка expect

sudo apt-get install tcl-dev tk-dev mesa-common-dev libjpeg-dev libtogl-dev

Скачиваем c sourceforge.net/projects/expect/

в /usr/local/src/expect5.45

cd /usr/local/src/expect5.45 
sudo sh configure
sudo make
sudo make install

Возможные ошибки:

expect: error while loading shared libraries: libexpect5.45.so: cannot open shared object file: No such file or directory

Лечится запуская от sudo:

#!/bin/bash
ln -s /usr/local/src/expect5.45/libexpect5.45.so /lib64/libexpect5.45.so 
ln -s /usr/local/src/expect5.45/libexpect5.45.so /lib64/libexpect.so
ln -s /usr/local/src/expect5.45/libexpect5.45.so /lib64/libexpect.so.5
ln -s /usr/local/src/expect5.45/libexpect5.45.so /lib64/libexpect.so.5.45
ln -s /usr/local/src/expect5.45/libexpect5.45.so /usr/lib/libexpect5.45.so 
chmod 777 ln -s /usr/local/src/expect5.45/libexpect5.45.so
mkdir /usr/lib/tcltk/expect5.45
ln -s /usr/local/src/expect5.45/libexpect5.45.so /usr/lib/libexpect.so
ln -s /usr/local/src/expect5.45/libexpect5.45.so /usr/lib/libexpect.so.5
ln -s /usr/local/src/expect5.45/libexpect5.45.so /usr/lib/libexpect.so.5.45
ln -s /usr/local/src/expect5.45/pkgIndex.tcl /usr/lib/tcltk/expect5.45/pkgIndex.tcl
mkdir /usr/share/doc/expect
ln -s /usr/local/src/expect5.45/FAQ.gz /usr/share/doc/expect/FAQ.gz
ln -s /usr/local/src/expect5.45/NEWS.Debian.gz /usr/share/doc/expect/NEWS.Debian.gz
ln -s /usr/local/src/expect5.45/NEWS.gz /usr/share/doc/expect/NEWS.gz
ln -s /usr/local/src/expect5.45/README.gz /usr/share/doc/expect/README.gz
ln -s /usr/local/src/expect5.45/changelog.Debian.gz /usr/share/doc/expect/changelog.Debian.gz
ln -s /usr/local/src/expect5.45/changelog.gz /usr/share/doc/expect/changelog.gz
ln -s /usr/local/src/expect5.45/copyright /usr/share/doc/expect/copyright
ln -s /usr/local/src/expect5.45/expect /usr/share/lintian/overrides/expect
ln -s /usr/local/src/expect5.45/expect.1.gz /usr/share/man/man1/expect.1.gz
chmod 777 -R expect5.45

Возможные ошибки:

expect: error while loading shared libraries: libexpect5.45.so: cannot open shared object file: Error 40

Решение LOL:

sudo apt-get install expect


Источники:

github.com/Homebrew/homebrew-dupes/pull/438

sourceforge.net/projects/expect/

github.com/Linuxbrew/legacy-linuxbrew/issues/306

www.linuxquestions.org/questions/linux-software-2/configuration-error-can%27t-find-tcl-configuration-definition-4175434069/

344

Комментарии

Нет комментариев. Ваш будет первым!