[SOLVED] PKG_CONFIG_PATH environment variable problem
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I got this error in installing a numerical code figuring out mpich2 package:
checking pkg-config is at least version 0.9.0... yes
checking for MPICH2... configure: error: Package requirements (mpich2-ch3) were not met:
Variable 'exec_prefix' not defined in '/usr/local/lib/pkgconfig/mpich2-ch3.pc'
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables MPICH2_CFLAGS
and MPICH2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I have looked to the last posts on PKG_CONFIG_PATH:
I add the PKG_CONFIG_PATH with
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
to find and check the path, I write
Name: mpich2
Description: MPICH2 is an implementation of the Message-Passing Interface (MPI). The goals of MPICH2 are to provide an MPI implementation for important platforms, including clusters, SMPs, and massively parallel processors. It also provides a vehicle for MPI implementation research and for developing new and better parallel programming environments.
Version: 1.2.1p1
Requires:
Libs: -L${exec_prefix}/lib -lmpich -lmpichcxx -lopa -lpthread
Cflags: -O2 -I${prefix}/include -DMPICH_IGNORE_CXX_SEEK
I am sorry what I have to do now, should I put the path next to {exec_prefix}/usr/local/lib/pkgconfig (like this??)
1. please use [code] and [/code] tags
2. is this file 'official', or you hacked it manually? Anyway, you can insert an exec_prefix line:
Code:
# this gives access to the mpich2 header files
prefix=/usr/local # where-ever it is
exec_prefix=${prefix}
Name: mpich2
Description: MPICH2 is an implementation of the Message-Passing Interface (MPI). The goals of MPICH2 are to provide an MPI implementation for important platforms, including clusters, SMPs, and massively parallel processors. It also provides a vehicle for MPI implementation research and for developing new and better parallel programming environments.
Version: 1.2.1p1
Requires:
Libs: -L${exec_prefix}/lib -lmpich -lmpichcxx -lopa -lpthread
Cflags: -O2 -I${prefix}/include -DMPICH_IGNORE_CXX_SEEK
I am sorry I am using cygwin in windiws 7, and making the cygcheck for all my packages installed, I have not found the gdal, in cygwin, the installation update is made through the setup. I find this web site for gdal mapping tools: http://lists.maptools.org/pipermail/...ay/002010.html,
What do you think? does it work on cigwin?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Ref. # 11 .
The package mpich2-1.5.tar.gz from http://www.mcs.anl.gov/research/proj...hp?s=downloads
.. is source code, and can be installed in any Ubuntu version with :
$ ./configure --prefix=/usr/ --enable-threads=default && make && sudo make install
*** You can watch all the "200" options with $ ./configure --help
?? Any particular reason that you want "1.5",
and not the default Ubuntu "libmpich-dev-<version>" ?
? Which application are you trying to build, with mpich ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.