Установка composer2 в Ubuntu 20.4
1 2 3 4 |
wget https://getcomposer.org/installer --no-check-certificate -O "composer-setup.php" php composer-setup.php chmod -c 777 * sudo mv composer.phar /usr/bin/composer |
Жизнь замечательных грибов
1 2 3 4 |
wget https://getcomposer.org/installer --no-check-certificate -O "composer-setup.php" php composer-setup.php chmod -c 777 * sudo mv composer.phar /usr/bin/composer |
Ошибка:
1 2 |
pkg: warning: database version 34 is newer than libpkg(3) version 31, but still compatible pkg: sqlite error while executing INSERT OR ROLLBACK INTO pkg_search(id, name, origin) VALUES (?1, ?2 || '-' || ?3, ?4); in file pkgdb.c:1542: no such table: pkg_search |
Решение:
1 2 3 |
pkg shell CREATE VIRTUAL TABLE pkg_search USING fts4(id, name, origin); pragma user_version=33; |
Сам python:
1 |
pkg install python |
PIP:
1 |
pkg install py27-pip |
mysql_connector:
1 |
pip install mysql-connector==2.1.6 |
mysql_connector ставим именно эту версию, другая выдает ошибку Unable to find Protobuf include directory