Tasbeer
Tasbeer

Reputation: 408

How to set a directory in PKG_CONFIG_PATH variable in ubuntu

I want to add a directory containing a .pc file, to the PKG_CONFIG_PATH variable, that is required for a certain program to run on Ubuntu. I tried to find out a solution from google but it didn't really work.

I am pasting the log here. Please help.

tasbeer@tasbeer-desktop:~/Android/pocketsphinx/swig$ make
cc -g -Wall -DPIC -fPIC -I/usr/lib/jvm/default-java/include `pkg-config
--cflags sphinxbase pocketsphinx`  -c -o pocketsphinx_wrap.o
pocketsphinx_wrap.c
**Package sphinxbase was not found in the pkg-config search path.
Perhaps you should add the directory containing `sphinxbase.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sphinxbase' found
Package pocketsphinx was not found in the pkg-config search path.
Perhaps you should add the directory containing `pocketsphinx.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pocketsphinx' found**

Upvotes: 2

Views: 9428

Answers (1)

David
David

Reputation: 8640

I think the path may be a bit of a red herring.

I had a similar issue (while installing a different package). I solved that particular issue by downloading a latest project tar from the project website (linkparser in this case) and installing following the instructions included.

This thread kind of helped me in the right direction.

Upvotes: 0

Related Questions