Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Problem mit LDPATH
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
TheViperMan
n00b
n00b


Joined: 09 Apr 2008
Posts: 16

PostPosted: Wed Apr 09, 2008 4:09 pm    Post subject: [solved] Problem mit LDPATH Reply with quote

Hi!

Ich will ein Programm compilieren, das fertig mit einem Makefile kommt. Gebe ich make ein funktioniert es bis zum letzten Aufruf von g++, bei dem LDPATH übergeben wird.
Es sagt: g++: /usr/kde/3.5/lib:: Datei oder Verzeichnis nicht gefunden

Wenn ich "echo $LDPATH" eingeben bekomme ich "/usr/kde/3.5/lib:" angezeigt.
Scheinbar ist der Doppelpunkt nach der Pfadangabe zuviel.
In /etc/env.d sind aber alle Pfade richtig angegeben ohne den Doppelpunkt dahinter, der wird ja nur gebraucht um die einzelnen Pfade voneinander zu trennen, da hier aber nur ein Pfad genannt ist braucht man ja den Doppelpunkt nicht. Aber wie bekomme ich den weg?

Gruß Viper


Last edited by TheViperMan on Sat Apr 12, 2008 1:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
Fauli
l33t
l33t


Joined: 24 Apr 2004
Posts: 760
Location: Moers, Germany

PostPosted: Wed Apr 09, 2008 5:37 pm    Post subject: Reply with quote

Du könntest einfach vor dem "make" einmal
Code:
export LDPATH="/usr/kde/3.5/lib"

eingeben.
_________________
Do your part to beautify the web! Turn off link underlining!
Back to top
View user's profile Send private message
TheViperMan
n00b
n00b


Joined: 09 Apr 2008
Posts: 16

PostPosted: Fri Apr 11, 2008 2:00 pm    Post subject: Reply with quote

Das löst sicher das Problem mit dem kompilieren, aber mich würde vielmehr interessieren, warum LDPATH falsch eingetragen wird.
Wenn man da nichts machen kann ist es eben so.

Schonmal danke :)

Gruß Viper
Back to top
View user's profile Send private message
Fauli
l33t
l33t


Joined: 24 Apr 2004
Posts: 760
Location: Moers, Germany

PostPosted: Fri Apr 11, 2008 6:24 pm    Post subject: Reply with quote

Das Problem liegt in /usr/kde/3.5/bin/startkde:

Anstelle von
Code:
export LDPATH=/usr/kde/3.5/lib:${LDPATH}

sollte dort besser
Code:
export LDPATH=/usr/kde/3.5/lib${LDPATH:+:$LDPATH}

stehen.
_________________
Do your part to beautify the web! Turn off link underlining!
Back to top
View user's profile Send private message
TheViperMan
n00b
n00b


Joined: 09 Apr 2008
Posts: 16

PostPosted: Sat Apr 12, 2008 1:36 pm    Post subject: Reply with quote

LDPATH ist jetzt richtig, leider funktioniert das compilieren immernoch nicht, scheint wohl der Befehl im Makefile nicht ganz korrekt zu sein.
Trotzdem danke :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum