LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-18-2011, 03:50 PM   #1
unraisedarc
LQ Newbie
 
Registered: Jun 2010
Posts: 19

Rep: Reputation: 0
Installing tmux from source as non root user.


Hello,

I have a user account on a Debian machine. I am attempting to install tmux from source as a non-root user because I do not have administrative rights to the server that I hold an account on. The only dependency that is missing in order to install tmux is the libevent-dev files. This means that I need to build libevent-dev from source, but unfortunately I can only find .deb package files for libevent on the internet.

a) Is it possible to install a .deb file as non root user into my home directory?

b) If not, where can I find the tarball for the libevent-dev files so I can build this dependency in my home folder from source?

Thanks guys,

Unraised
 
Old 01-18-2011, 04:42 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
In Debian-based distributions, the libraries and actual binaries for packages are generally separated into two different packages. So for example, there would be a package for libevent if you just wanted to use libevent, but then a libevent-dev package that installs the libevent libraries necessary to actually compile an application against it.

But the original source for both of these packages would be just libevent, so you don't need to find the "source" for libevent-dev, since that is just an offshoot of the same program. So downloading and building libevent (make sure to use the same version as what is already installed) in /home should give you the libraries necessary to build something against it.

In the "configure" script for tmux, you will need to tell it to look for the libraries under /home as well, since you won't be able to install them system-wide (which is where the configuration will look for them).
 
Old 01-18-2011, 04:51 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
The Debian "libevent source site" :

http://packages.debian.org/source/lenny/libevent


..
 
Old 01-18-2011, 05:28 PM   #4
unraisedarc
LQ Newbie
 
Registered: Jun 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks. I found the source and installed it my $HOME/local directory.

Now, to install TMUX, the next commands I ran were

Code:
~/tmux-1.4$ CPPFLAGS="-I$HOME/local/include" 
~/tmux-1.4$ LDFLAGS="-L$HOME/local/include"
~/tmux-1.4$ ./configure --prefix=$HOME/bin
Configured for Linux
~/tmux-1.4$ make
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote.   -c -o attributes.o attributes.c                                                        
In file included from attributes.c:23:                                          
tmux.h:30:19: error: event.h: No such file or directory                         
In file included from attributes.c:23:                                          
tmux.h:830: error: field ‘name_timer’ has incomplete type                       
tmux.h:1032: error: field ‘key_timer’ has incomplete type                       
tmux.h:1093: error: field ‘event’ has incomplete type                           
tmux.h:1117: error: field ‘repeat_timer’ has incomplete type                    
tmux.h:1139: error: field ‘identify_timer’ has incomplete type                  
tmux.h:1142: error: field ‘message_timer’ has incomplete type             
make: *** [attributes.o] Error 1
~/tmux-1.4$
This is the same exact output I had before compiling libevent, so I'm assuming I haven't make the config file aware of the include files, since event.h is in $HOME/local/include. Does anybody see where I went wrong. Can anyone point me in the right direction? I think I'm almost there.

Thanks!
 
Old 01-18-2011, 05:45 PM   #5
unraisedarc
LQ Newbie
 
Registered: Jun 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Ok, I got the files to include, but I have a new problem (sorry in advance for the big code dumb, the error happens at the bottom):

Code:
bjp002@gimli:~/tmux$ ./configure --prefix=$HOME/bin
Configured for Linux
bjp002@gimli:~/tmux$ CPPFLAGS="-I$HOME/local/include" LDFLAGS="-L$HOME/local/include" make
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o attributes.o attributes.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cfg.o cfg.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o client.o client.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o clock.o clock.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-attach-session.o cmd-attach-session.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-bind-key.o cmd-bind-key.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-break-pane.o cmd-break-pane.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd.o cmd.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-capture-pane.o cmd-capture-pane.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-choose-buffer.o cmd-choose-buffer.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-choose-client.o cmd-choose-client.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-choose-session.o cmd-choose-session.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-choose-window.o cmd-choose-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-clear-history.o cmd-clear-history.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-clock-mode.o cmd-clock-mode.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-command-prompt.o cmd-command-prompt.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-confirm-before.o cmd-confirm-before.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-copy-buffer.o cmd-copy-buffer.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-copy-mode.o cmd-copy-mode.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-delete-buffer.o cmd-delete-buffer.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-detach-client.o cmd-detach-client.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-display-message.o cmd-display-message.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-display-panes.o cmd-display-panes.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-find-window.o cmd-find-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-generic.o cmd-generic.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-has-session.o cmd-has-session.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-if-shell.o cmd-if-shell.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-join-pane.o cmd-join-pane.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-kill-pane.o cmd-kill-pane.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-kill-server.o cmd-kill-server.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-kill-session.o cmd-kill-session.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-kill-window.o cmd-kill-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-last-pane.o cmd-last-pane.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-last-window.o cmd-last-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-link-window.o cmd-link-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-list-buffers.o cmd-list-buffers.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-list.o cmd-list.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-list-clients.o cmd-list-clients.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-list-commands.o cmd-list-commands.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-list-keys.o cmd-list-keys.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-list-panes.o cmd-list-panes.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-list-sessions.o cmd-list-sessions.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-list-windows.o cmd-list-windows.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-load-buffer.o cmd-load-buffer.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-lock-client.o cmd-lock-client.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-lock-server.o cmd-lock-server.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-lock-session.o cmd-lock-session.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-move-window.o cmd-move-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-new-session.o cmd-new-session.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-new-window.o cmd-new-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-next-layout.o cmd-next-layout.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-next-window.o cmd-next-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-paste-buffer.o cmd-paste-buffer.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-pipe-pane.o cmd-pipe-pane.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-previous-layout.o cmd-previous-layout.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-previous-window.o cmd-previous-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-refresh-client.o cmd-refresh-client.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-rename-session.o cmd-rename-session.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-rename-window.o cmd-rename-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-resize-pane.o cmd-resize-pane.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-respawn-window.o cmd-respawn-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-rotate-window.o cmd-rotate-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-run-shell.o cmd-run-shell.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-save-buffer.o cmd-save-buffer.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-select-layout.o cmd-select-layout.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-select-pane.o cmd-select-pane.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-select-window.o cmd-select-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-send-keys.o cmd-send-keys.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-send-prefix.o cmd-send-prefix.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-server-info.o cmd-server-info.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-set-buffer.o cmd-set-buffer.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-set-environment.o cmd-set-environment.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-set-option.o cmd-set-option.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-set-window-option.o cmd-set-window-option.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-show-buffer.o cmd-show-buffer.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-show-environment.o cmd-show-environment.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-show-messages.o cmd-show-messages.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-show-options.o cmd-show-options.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-show-window-options.o cmd-show-window-options.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-source-file.o cmd-source-file.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-split-window.o cmd-split-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-start-server.o cmd-start-server.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-string.o cmd-string.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-suspend-client.o cmd-suspend-client.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-swap-pane.o cmd-swap-pane.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-swap-window.o cmd-swap-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-switch-client.o cmd-switch-client.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-unbind-key.o cmd-unbind-key.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o cmd-unlink-window.o cmd-unlink-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o colour.o colour.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o environ.o environ.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o grid.o grid.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o grid-utf8.o grid-utf8.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o grid-view.o grid-view.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o input.o input.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o input-keys.o input-keys.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o job.o job.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o key-bindings.o key-bindings.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o key-string.o key-string.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o layout.o layout.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o layout-custom.o layout-custom.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o layout-set.o layout-set.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o layout-string.o layout-string.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o log.o log.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o mode-key.o mode-key.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o names.o names.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o options.o options.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o paste.o paste.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o resize.o resize.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o screen.o screen.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o screen-redraw.o screen-redraw.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o screen-write.o screen-write.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o server.o server.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o server-client.o server-client.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o server-fn.o server-fn.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o server-window.o server-window.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o session.o session.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o signal.o signal.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o status.o status.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o tmux.o tmux.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o tty-acs.o tty-acs.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o tty.o tty.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o tty-keys.o tty-keys.c
cc -DBUILD="\"1.4\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -I/home/bjp002/local/include  -c -o tty-term.o tty-term.c
tty-term.c:24:20: error: curses.h: No such file or directory
tty-term.c:29:18: error: term.h: No such file or directory
tty-term.c: In function ‘tty_term_find’:
tty-term.c:326: warning: implicit declaration of function ‘setupterm’
tty-term.c:326: error: ‘OK’ undeclared (first use in this function)
tty-term.c:326: error: (Each undeclared identifier is reported only once
tty-term.c:326: error: for each function it appears in.)
tty-term.c:356: warning: implicit declaration of function ‘tigetstr’
tty-term.c:356: warning: assignment makes pointer from integer without a cast
tty-term.c:363: warning: implicit declaration of function ‘tigetnum’
tty-term.c:370: warning: implicit declaration of function ‘tigetflag’
tty-term.c:382: warning: implicit declaration of function ‘del_curterm’
tty-term.c:382: error: ‘cur_term’ undeclared (first use in this function)
tty-term.c: In function ‘tty_term_string1’:
tty-term.c:474: warning: implicit declaration of function ‘tparm’
tty-term.c:474: warning: return makes pointer from integer without a cast
tty-term.c: In function ‘tty_term_string2’:
tty-term.c:480: warning: return makes pointer from integer without a cast
make: *** [tty-term.o] Error 1
bjp002@gimli:~/tmux$

Last edited by unraisedarc; 01-18-2011 at 05:48 PM. Reason: unclear
 
Old 01-18-2011, 06:22 PM   #6
unraisedarc
LQ Newbie
 
Registered: Jun 2010
Posts: 19

Original Poster
Rep: Reputation: 0
UPDATE:

I got it to work. I had to also compile ncurses locally.

SUMMARY:

For anyone else who wants to install tmux to their home folder (as non root) here is what you need to do.

1) Download libevent and ncurses.
2) Compile them to $HOME/local
3) Install tmux by the following:

cd tmux
./configure
CPPFLAGS="-I$HOME/local/include" LDFLAGS="-static -L$HOME/local/include -L$HOME/local/include/ncurses -L$HOME/local/lib" make
make install

4)./tmux

Thanks guys!
 
Old 01-18-2011, 06:22 PM   #7
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Now it looks like you are missing the headers for ncurses.
 
Old 02-18-2011, 04:54 AM   #8
isaac_linux
Member
 
Registered: Nov 2003
Location: India
Posts: 30

Rep: Reputation: 15
Hi,

I tried the steps you mentioned. I'm still getting the error you mentioned earlier.

tty-term.c:24:20: error: curses.h: No such file or directory
tty-term.c:29:18: error: term.h: No such file or directory
tty-term.c: In function ‘tty_term_find’:
tty-term.c:326: warning: implicit declaration of function ‘setupterm’


Does it have to do anything with the versions of libevent and ncurses?

I have libevent-1.4.14b-stable and ncurses-5.7 and tmux-1.4

Can you tell me which versions you are using
 
Old 02-19-2011, 03:24 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Post #8 :

Probably : apt-get install libevent-dev libncurses5-dev (libncursesw5-dev)

.. if you are also using Debian.
 
Old 02-19-2011, 11:08 AM   #10
unraisedarc
LQ Newbie
 
Registered: Jun 2010
Posts: 19

Original Poster
Rep: Reputation: 0
If you have root access, I highly suggest using the method presented by knudfl. Otherwise, if you are simply a non-root user (without the ability to gain root access), here are the steps that I used:


Code:
ssh username@server.com
mkdir local
mkdir tmp
mv tmux-1.4.tar.gz tmp
mv ncurses-5.7.tar.gz tmp
mv libevent-2.0.10-stable.tar.gz tmp
cd tmp
tar xvfz tmux-1.4.tar.gz
tar xvfz ncurses-5.7.tar.gz
tar xvfz libevent-2.0.10-stable.tar.gz
cd libevent-2.0.10-stable
./configure --prefix=$HOME/local
make
make install
cd ../ncureses-5.7
./configure --prefix=$HOME/local
make
make install
cd ../tmux-1.4
./configure
CPPFLAGS="-I$HOME/local/include -I$HOME/local/include/ncurses" LDFLAGS="-static -L$HOME/local/include -L$HOME/local/include/ncurses -L$HOME/local/lib" make

/***make install DOESN'T WORK, SO DON'T EVEN TRY, also -static makes it so we don't need to dynamically link shared files in $HOME/local/lib meaning exporting a LD shell variable. We can just copy it and run it. Note: that whole long line above is a single command, run it all together!***/

cp tmux ~/local/bin
export PATH=$HOME/local/bin:$PATH

/***At this point, you should be able to just type tmux on the command line and have it work. Otherwise, the binary was installed to $HOME/local/bin, and you can run it by changing directories to there.***/
I'd be happy to help or further clarify if the above doesn't work for you. Note that you may need to resolve further dependencies other than the ones I needed to resolve. In that case, you should install all the additional dependencies using the same ./configure --prefix=$HOME/local location.

Unraised
 
Old 02-19-2011, 11:05 PM   #11
isaac_linux
Member
 
Registered: Nov 2003
Location: India
Posts: 30

Rep: Reputation: 15
Thank you very much. That worked!
 
Old 04-17-2011, 10:36 AM   #12
appell
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
Thank you very much. That works!

test at centos 4.3 and centos 5.5
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing an RPM as non-root user in $HOME priya@linux Linux - Newbie 23 07-02-2009 07:06 AM
Installing programs for normal user (non-root) tuesday Linux - General 10 04-02-2008 01:51 AM
installing an rpm as a non-root user sidra Red Hat 2 09-19-2007 03:54 PM
What is the general rule(if any?) about downloading/installing as User or Root? kbusche Linux - Newbie 1 03-24-2006 03:00 AM
installing from source without root qgroff Linux - General 2 06-16-2005 02:13 PM


All times are GMT -5. The time now is 04:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration