0

I am trying to install pocketsphinx and after installation I should run these commands:

export LD_LIBRARY_PATH=/usr/local/lib
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

But I am interested to know where does this command add the paths? If I want to do it manually, how can I do that?

0

1 Answer 1

0

What you are doing it setting the variable LD_LIBRARY_PATH to the value /usr/local/lib & PKG_CONFIG_PATH to the value /usr/local/lib/pkgconfig.

The export command means that the variables are added to the environment of subsequently executed commands. So whatever you're running after exporting these variables will have access to them.

So your application will be looking for the variables LD_LIBRARY_PATH & PKG_CONFIG_PATH.

2
  • But after restarting, I must do it again. How can I permanent the changes? Commented Jun 8, 2018 at 8:11
  • Assuming you are using bash, add the two lines to your ~/.bash_profile. Commented Jun 8, 2018 at 9:05

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.