[CMake] Why does ExternalProject require root access?

Theodore Papadopoulo Theodore.Papadopoulo at inria.fr
Mon Jan 21 04:43:43 EST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/20/2013 10:54 PM, Eric Noulard wrote:
> 
> 
> 2013/1/20 Ansis Māliņš <ansis.malins at gmail.com 
> <mailto:ansis.malins at gmail.com>>
> 
> The line ExternalProject_Add(bullet PREFIX ${PROJECT_SOURCE_DIR}) 
> fails with Install the project... -- Install configuration:
> "Release" CMake Error at cmake_install.cmake:38 (FILE): file cannot
> create directory: /usr/local/lib/pkgconfig.  Maybe need 
> administrative privileges.
> 
> Why? How do I avoid needing root for building my project?

The bullet project uses pkgconfig which is not installed on your
computer so that your system proposes you to pass root and install it.

So just find the proper package and install it (as root or compile it
and put it somewhere on your path) and it should work.

	Theo.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlD9Dc8ACgkQEr8WrU8nPV2+lQCglobLGNOHFH4+VF4s81AzK7LN
zYAAn2sDueCMzdqXsVKSPrsTQpu9+qiq
=Vdcq
-----END PGP SIGNATURE-----


More information about the CMake mailing list