---
title: "lib grej"
type: "forum-thread"
url: "https://www.webforum.nu/amne/linux-bsd/82893-lib-grej"
topic: "Linux & BSD"
topic_url: "https://www.webforum.nu/amne/linux-bsd"
author: "benken"
published: "2003-07-28T07:18:26.000Z"
updated: "2003-07-28T08:33:46.000Z"
replies: 5
views: 169
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/linux-bsd/82893-lib-grej"
---

# lib grej

## #1 — benken, 2003-07-28T07:18Z

Detta stod när jag kompilerade libgphoto2, 
men hur gör jag det??? Fattar inget, har läst manualer, men det funkar inte....

> Libraries have been installed in:
>    /usr/local/lib/gphoto2/2.1.1
> 
> If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use the \`-LLIBDIR'
> flag during linking and do at least one of the following:
>    \- add LIBDIR to the \`LD_LIBRARY_PATH' environment variable
>      during execution
>    \- add LIBDIR to the \`LD_RUN_PATH' environment variable
>      during linking
>    \- use the \`-Wl,--rpath -Wl,LIBDIR' linker flag
>    \- have your system administrator add LIBDIR to \`/etc/ld.so.conf'
> 
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.

Jag måste göra detta för att jag ska kunna installera gphoto2, men jag vet inte nått om det....

Permalänk: https://www.webforum.nu/p/82893

## #2 — LMD, 2003-07-28T07:42Z

Nej, varför det?

"If you ever happen to want to link against installed libraries ".

Det enda det säger är ju att om du t ex skulle skriva ett eget program som vill länka mot de libbarna så får du följa instruktionerna.

Permalänk: https://www.webforum.nu/p/1122339

## #3 — benken, 2003-07-28T07:50Z

Jo, men när jag ska installera gphoto2, så står det

> checking for libgphoto2 \>= 2.1.1... Package libgphoto2 was not found in the pkg-config search path.
> Perhaps you should add the directory containing \`libgphoto2.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libgphoto2' found

ioförsig, är kanske inte samma sak :? men vad ska jag göra??

Permalänk: https://www.webforum.nu/p/1122340

## #4 — GunnarD, 2003-07-28T08:16Z

I filen /etc/ld.so.conf lägger du till följande rad:

 /usr/local/lib/gphoto2/2.1.1

Därefter kör du kommandot "ldconfig"

Permalänk: https://www.webforum.nu/p/1122348

## #5 — benken, 2003-07-28T08:28Z

ldconfig ?

fanns inte...

Permalänk: https://www.webforum.nu/p/1122350

## #6 — benken, 2003-07-28T08:33Z

Fanns visst sen, (lång sökväg)

men det funkar inte endå,. samma fel...

Permalänk: https://www.webforum.nu/p/1122355

---

Tråden på webben: https://www.webforum.nu/amne/linux-bsd/82893-lib-grej
