Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 02 Oct 2014, 01:11
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
How to compile tmux? solved
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
oldyeller


Joined: 15 Nov 2011
Posts: 808
Location: Mishawaka IN

PostPosted: Thu 11 Oct 2012, 19:39    Post_subject:  How to compile tmux? solved
Sub_title: with libevent? solved
 

Hello,

I would like to compile this, but not sure if this can be done on puppy.


To build tmux from a release tarball, do:

$ ./configure && make
$ sudo make install

Can this be done on puppy?

Edited_times_total
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4245
Location: Gatineau (Qc), Canada

PostPosted: Thu 11 Oct 2012, 20:26    Post_subject:  

Hi, oldyeller.

You don't need to "sudo" on Puppy, since we're already "root".

The usual sequence under Puppy is:

Code:
./configure # also ok: sh configure
make
make install


This installs the program in /usr/bin or in /usr/local/bin (the usual spot if you don't tweek the "configure" command).

Two refinements of the above line are possible, but mutually exclusive:
1)
Code:
make DESTDIR=/your/chosen/path install

This installs the program in /your/chosen/path with all the necessary subdirs in it. You can then make a pet by issuing

Code:
cd ProgramDir
cd ..

# Because, to do this properly, you have to be one level above the directory that contains your program.
Code:
dir2pet ProgramDir-VersionNumber

# the name of the top dir of the program + the v. number (if applicable)

2) Exclusive OR # If you use #1 above don't use this one, and vice versa.
The second refinement is to type
Code:
new2dir make install

# Available only in Puppy.

I hope this helps.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4245
Location: Gatineau (Qc), Canada

PostPosted: Thu 11 Oct 2012, 20:27    Post_subject:  

[Sorry, "IT" double-posted all by itself...]
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
oldyeller


Joined: 15 Nov 2011
Posts: 808
Location: Mishawaka IN

PostPosted: Thu 11 Oct 2012, 20:41    Post_subject:  

thanks musherO,

was not sure when I saw sudo, Should have figured that one out.

I will give it a go and see. It also needs another app so will have to download that one and compile that as well.

Learning new things is such FUN!!! Wink

Cheers
Back to top
View user's profile Send_private_message 
muggins

Joined: 20 Jan 2006
Posts: 6687
Location: lisbon

PostPosted: Fri 12 Oct 2012, 03:40    Post_subject:  

Because the default library search path, in puppy, includes /usr/lib but not /usr/local/lib, it's best to run:

Code:
./configure --prefix=/usr
make
make DESTDIR=/your/chosen/path install
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4245
Location: Gatineau (Qc), Canada

PostPosted: Fri 12 Oct 2012, 10:16    Post_subject:  

muggins wrote:
Because the default library search path, in puppy, includes /usr/lib but not /usr/local/lib, it's best to run:

Code:
./configure --prefix=/usr
make
make DESTDIR=/your/chosen/path install


True.

But if you so choose, you can make libraries in /usr/local/lib visible to your Puppy path by adding the reference to line 3 of file /etc/profile, like so:

Code:
LD_LIBRARY_PATH="/lib:/usr/lib:/usr/X11R7/lib:/usr/local/lib:/root/my-applications/lib"


That way, the one time you forget to add "--prefix=/usr" to your configure line, you'll still have a workable compile of your program. Also, it may be generally handy if you occasionnally download and run *.deb's or *.rpm's that were not specifically compiled with Puppy as the distro.

Just my 2 cents. BFN.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
oldyeller


Joined: 15 Nov 2011
Posts: 808
Location: Mishawaka IN

PostPosted: Fri 12 Oct 2012, 15:32    Post_subject:  

Hello,

I also had to download this libevent

These are my options I know that I don't have to do sudo since I am already running as root. It is what follows that I am not sure of. In (blue text)

$ ./configure
$ make
$ make verify # (optional)
$ sudo make install

1. BUILDING AND INSTALLATION (In Depth)

To build libevent, type

$ ./configure && make

(If you got libevent from the git repository, you will
first need to run the included "autogen.sh" script in order to
generate the configure script.)

You can run the regression tests by running

$ make verify

Install as root via

# make install

Before, reporting any problems, please run the regression tests.

To enable the low-level tracing build the library as:

CFLAGS=-DUSE_DEBUG ./configure [...]

Standard configure flags should work. In particular, see:

--disable-shared = Only build static libraries
--prefix = Install all files relative to this directory.


The configure script also supports the following flags:

--enable-gcc-warnings = Enable extra compiler checking with GCC.
--disable-malloc-replacement = Don't let applications replace our memory management functions

--disable-openssl = Disable support for OpenSSL encryption.
--disable-thread-support = Don't support multithreaded environments.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0637s ][ Queries: 12 (0.0090s) ][ GZIP on ]