Страница 1 из 1
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 09:58
CheshireCat
Патаюсь собрать boost:
Код: Выделить всё
&bootstrap.sh --help
bootstrap.sh: команда не найдена
https://www.boost.org/doc/libs/1_69_0/m ... st-library
Команду запускю из терминала.
Запускал и с sudo и без
Выдал права на исполнение, всё равно не запускается.
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 10:05
rogoznik
CheshireCat писал(а): ↑03 фев 2019, 09:58
Патаюсь собрать boost
Рад за тебя.
Только откуда уверенность что все тут знают это такое?
Так сложно дать ссылку чтоб можно было сразу узнать что ты собираешь и из чего?
Откуда команду запускаешь?
Права на исполнение скрипту выдал?
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 10:14
rogoznik
Вот стянул вот
это (понятия не имею то или нет). Однако файл
bootstrap.sh
имеется
Код: Выделить всё
~/src/boost master ✔ 22h23m
▶ ls
appveyor.yml boostcpp.jam boost.png bootstrap.sh doc index.html Jamroot LICENSE_1_0.txt rst.css tools
boost-build.jam boost.css bootstrap.bat circle.yml index.htm INSTALL libs more status
Выдал права на исполнение
Код: Выделить всё
~/src/boost master ✔ 22h23m
▶ chmod a+x bootstrap.sh
И получил
Код: Выделить всё
~/src/boost master ✔ 22h24m
▶ ./bootstrap.sh --help
`./bootstrap.sh' prepares Boost for building on a few kinds of systems.
Usage: ./bootstrap.sh [OPTION]...
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--with-bjam=BJAM use existing Boost.Jam executable (bjam)
[automatically built]
--with-toolset=TOOLSET use specific Boost.Build toolset
[automatically detected]
--show-libraries show the set of libraries that require build
and installation steps (i.e., those libraries
that can be used with --with-libraries or
--without-libraries), then exit
--with-libraries=list build only a particular set of libraries,
describing using either a comma-separated list of
library names or "all"
[all]
--without-libraries=list build all libraries except the ones listed []
--with-icu enable Unicode/ICU support in Regex
[automatically detected]
--without-icu disable Unicode/ICU support in Regex
--with-icu=DIR specify the root of the ICU library installation
and enable Unicode/ICU support in Regex
[automatically detected]
--with-python=PYTHON specify the Python executable [python]
--with-python-root=DIR specify the root of the Python installation
[automatically detected]
--with-python-version=X.Y specify the Python version as X.Y
[automatically detected]
Installation directories:
--prefix=PREFIX install Boost into the given PREFIX
[/usr/local]
--exec-prefix=EPREFIX install Boost binaries into the given EPREFIX
[PREFIX]
More precise control over installation directories:
--libdir=DIR install libraries here [EPREFIX/lib]
--includedir=DIR install headers here [PREFIX/include]
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 10:18
CheshireCat
Выдал права на исполнение, всё равно не запускается.
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 10:21
rogoznik
CheshireCat писал(а): ↑03 фев 2019, 10:18
Выдал права на исполнение, всё равно не запускается.
Это все что осилил? Остальные вопросы решил игнорировать. Ну ок.
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 10:22
CheshireCat
Я добавил в свой вопрос ответы на все ваши вопросы.
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 10:27
rogoznik
CheshireCat, нашел по твоей ссылке ссылку на скачивание, скачал, распаковал.
Далее в терминале
Код: Выделить всё
~/src
▶ cd boost_1_67_0
~/src/boost_1_67_0
▶ chmod a+x bootstrap.sh
~/src/boost_1_67_0
▶ ./bootstrap.sh --help
`./bootstrap.sh' prepares Boost for building on a few kinds of systems.
Usage: ./bootstrap.sh [OPTION]...
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--with-bjam=BJAM use existing Boost.Jam executable (bjam)
[automatically built]
--with-toolset=TOOLSET use specific Boost.Build toolset
[automatically detected]
--show-libraries show the set of libraries that require build
and installation steps (i.e., those libraries
that can be used with --with-libraries or
--without-libraries), then exit
--with-libraries=list build only a particular set of libraries,
describing using either a comma-separated list of
library names or "all"
[all]
--without-libraries=list build all libraries except the ones listed []
--with-icu enable Unicode/ICU support in Regex
[automatically detected]
--without-icu disable Unicode/ICU support in Regex
--with-icu=DIR specify the root of the ICU library installation
and enable Unicode/ICU support in Regex
[automatically detected]
--with-python=PYTHON specify the Python executable [python]
--with-python-root=DIR specify the root of the Python installation
[automatically detected]
--with-python-version=X.Y specify the Python version as X.Y
[automatically detected]
Installation directories:
--prefix=PREFIX install Boost into the given PREFIX
[/usr/local]
--exec-prefix=EPREFIX install Boost binaries into the given EPREFIX
[PREFIX]
More precise control over installation directories:
--libdir=DIR install libraries here [EPREFIX/lib]
--includedir=DIR install headers here [PREFIX/include]
Все отрабатывает
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 10:31
CheshireCat
Понял свою ошибку: я пытался запустить просто bootstrap.sh без ./. Что дает ./?
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 10:33
rogoznik
Обращение к исполняемому файлу. Так приходится обращаться, потому что иначе shell пытается искать в каталогах из PATH, а там естественно нет такого исполняемого файла - вот и ошибка. Ну это если в двух словах.
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 10:39
CheshireCat
Так теперь когда пытаюсь непосредственно начать сборку :
sudo ./bootstrap.sh
Выдает:
Permission denied
Насколько я понял, это потомучто он пытается собрать в /usr/local/, но я же через sudo это делаю.
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 10:55
rogoznik
CheshireCat, внимательно прочти
это. Так ли тебе надо чтоб оно установилось в
/usr/local
. Там же написано что можно задать свой префикс для установки, а потом просто добавить этот префикс в
PATH
. Сделать это не сложно. Открыть файл
~/.bashrc
и добавить в него это
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 15:43
rogoznik
CheshireCat, собрал, запустил?
bootstrap.sh: команда не найдена
Добавлено: 03 фев 2019, 20:42
CheshireCat
Там было ещё проблемма, не связанная напрямую с linux, но вроде собрал.