добавьте каталоги пути для ускорительной установки

Я установил boost_1.58_0 на корневом каталоге своего loptop. После некоторых процессов я столкнулся к этому сообщению:

The following directory should be added to compiler include paths:

/home/acerv3-571g/boost_1_58_0

The following directory should be added to linker library paths:

/home/acerv3-571g/boost_1_58_0/stage/lib

Однако для других версий повышения я видел некоторые сообщения, но к сожалению я не могу к использованию их. Относительно к моему низкому знанию в человечности, я думаю, что они не таким образом просты и ясны.

Строки рева связаны с комментарием

 # ~/.bashrc: executed by bash(1) for non-login shells.
 # see /usr/share/doc/bash/examples/startup-files (in the package    bash-doc)
# for examples

 # If not running interactively, don't do anything
 case $- in
 *i*) ;;
  *) return;;
esac

    # don't put duplicate lines or lines starting with space in the     history.
   # See bash(1) for more options
   HISTCONTROL=ignoreboth

 # append to the history file, don't overwrite it
  shopt -s histappend

  # for setting history length see HISTSIZE and HISTFILESIZE in    bash(1)
    HISTSIZE=1000
    HISTFILESIZE=2000

     # check the window size after each command and, if necessary,
      # update the values of LINES and COLUMNS.
    shopt -s checkwinsize

    # If set, the pattern "**" used in a pathname expansion context will
   # match all files and zero or more directories and subdirectories.
   #shopt -s globstar
2
задан 29 July 2015 в 11:06

1 ответ

Вам нужны следующие команды:

export INCLUDE="/home/acerv3-571g/boost_1_58_0:$INCLUDE"
export LIBRARY_PATH="/home/acerv3-571g/boost_1_58_0/stage/lib:$LIBRARY_PATH"

можно выполнить их в терминале для установки этих переменных на текущем терминальном сеансе. Если Вы хотите сделать их постоянными, необходимо добавить эти строки к Вашему .bashrc

1
ответ дан 2 December 2019 в 05:03

Другие вопросы по тегам:

Похожие вопросы: