library search path

2012-05-28 Thread fake fake
To install tmux under $HOME/bin, I have installed libevent library
under $HOME/lib (I do not have root privilege).
Then set the variable LD_LIBRARY_PATH to $HOME/lib in .cshrc.
But "./configure --prefix=$HOME" in src/tmux returns "configure:
error: "libevent not found"".
What am I doing wrong?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: library search path

2012-05-28 Thread Polytropon
On Mon, 28 May 2012 23:11:26 +0900, fake fake wrote:
> To install tmux under $HOME/bin, I have installed libevent library
> under $HOME/lib (I do not have root privilege).
> Then set the variable LD_LIBRARY_PATH to $HOME/lib in .cshrc.
> But "./configure --prefix=$HOME" in src/tmux returns "configure:
> error: "libevent not found"".
> What am I doing wrong?

Note that you need to _add_ $HOME/lib to $LD_LIBRARY_PATH
(and check that it's expanded correctly).

Do you have access to the ports tree (reading)? Then you
could simply redefine $WRKDIRPREFIX to where you can
compile, and $PREFIX to where you can install to. See
"man 7 ports" for details.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: library search path

2012-05-28 Thread Martin Laabs

Hello,

just a guess:

On 28.05.2012 16:11, fake fake wrote:


To install tmux under $HOME/bin, I have installed libevent library
under $HOME/lib (I do not have root privilege).
Then set the variable LD_LIBRARY_PATH to $HOME/lib in .cshrc.


LD_LIBRARY_PATH only affects the dynamic linker and its search path
when executing a program. You will need this when you execude tmux afterwards.


But "./configure --prefix=$HOME" in src/tmux returns "configure:


With --prefix=... you tell the configure script where you wanna install the 
files. Now you have to tell the gcc where to search for the 
library/includes. So try to set CFLAGS="-I $HOME/include -L $HOME/lib"


Best regards,
 Martin Laabs

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: library search path

2012-05-28 Thread Eitan Adler
On 28 May 2012 08:54, Polytropon  wrote:
> On Mon, 28 May 2012 23:11:26 +0900, fake fake wrote:
>> To install tmux under $HOME/bin, I have installed libevent library
>> under $HOME/lib (I do not have root privilege).
>> Then set the variable LD_LIBRARY_PATH to $HOME/lib in .cshrc.
>> But "./configure --prefix=$HOME" in src/tmux returns "configure:
>> error: "libevent not found"".
>> What am I doing wrong?
>
> Note that you need to _add_ $HOME/lib to $LD_LIBRARY_PATH
> (and check that it's expanded correctly).
>
> Do you have access to the ports tree (reading)? Then you
> could simply redefine $WRKDIRPREFIX to where you can
> compile, and $PREFIX to where you can install to. See
> "man 7 ports" for details.

You can also try -DINSTALL_AS_USER though it may not work as advertised.

-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: library search path

2012-05-29 Thread Martin Laabs
Hello,

> On 29 May 2012 00:57, Martin Laabs  wrote:

[...]

> tmux didn't work with libevent 2.* but did with libevent 1.4.*

When typing "make config" in the tmux port it presents a checkbutton wether
I wanna use libenvet 1.4 or 2. So it seems to work with both versions.

Btw. - where do you see advantages of tmux in comparison to screen?

Best regards,
 Martin

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: library search path

2012-05-28 Thread fake fake
Thank you.
"./configure --prefix=$HOME CFLAGS="-L $HOME/lib" " worked perfectly.

further info:
I should have set LD_LIBRARY_PATH to absolute path.
tmux didn't work with libevent 2.* but did with libevent 1.4.*

On 29 May 2012 00:57, Martin Laabs  wrote:
> Hello,
>
> just a guess:
>
>
> On 28.05.2012 16:11, fake fake wrote:
>
>> To install tmux under $HOME/bin, I have installed libevent library
>> under $HOME/lib (I do not have root privilege).
>> Then set the variable LD_LIBRARY_PATH to $HOME/lib in .cshrc.
>
>
> LD_LIBRARY_PATH only affects the dynamic linker and its search path
> when executing a program. You will need this when you execude tmux
> afterwards.
>
>
>> But "./configure --prefix=$HOME" in src/tmux returns "configure:
>
>
> With --prefix=... you tell the configure script where you wanna install the
> files. Now you have to tell the gcc where to search for the
> library/includes. So try to set CFLAGS="-I $HOME/include -L $HOME/lib"
>
> Best regards,
>  Martin Laabs
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"