[Mono-list] Subject: Re: problem installing libgdiplus on amazon linux

Robert Jordan robertj at gmx.net
Fri Aug 26 13:55:21 EDT 2011


On 26.08.2011 19:39, Arsen Zahray wrote:
>>
>> Date: Fri, 26 Aug 2011 16:30:09 +0200
>> From: Robert Jordan<robertj at gmx.net>
>> Subject: Re: [Mono-list] problem installing libgdiplus on amazon linux
>> To: Mono-list at lists.ximian.com
>> Message-ID:<j38alg$gsi$2 at dough.gmane.org>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>> On 26.08.2011 16:27, Arsen Zahray wrote:
>>> (glib-2.0>= 2.2.3) were not met:
>>>
>>> No package 'glib-2.0' found
>>>
>>> Consider adjusting the PKG_CONFIG_PATH environment variable if you
>>> installed software in a non-standard prefix.
>>>
>>> Alternatively, you may set the environment variables
>>> BASE_DEPENDENCIES_CFLAGS
>>> and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
>>> See the pkg-config man page for more details.
>>>
>>> How do I fix this?
>> Install glib.
>> Robert
>
>
> I've downloaded and installed glib 2.2.3 from
> http://ftp.gnome.org/pub/GNOME/sources/glib/2.2/
>
> this is why I am asking this question

Sorry, I've missed that. You need to set PKG_CONFIG_PATH to
point to the prefix you've installed glib:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

Adjust the /usr/local part of the path with the prefix
you've specified to `configure'. It defaults to /usr/local.
Then add the line to your profile script or create a new
script "monopaths" and source it with ". monopaths" (assuming
you're using a sh-like shell).

Moreover, you should add /usr/local/lib to your LD path.
See the docs of your system about how to do it (usually
done by editing /etc/ld.so.conf or by placing a file in
/etc/ld.so.conf.d/ or by setting LD_LIBRARY_PATH).

Robert



More information about the Mono-list mailing list