LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-10-2009, 04:40 PM   #1
roystonlodge
Member
 
Registered: Jun 2008
Posts: 161

Rep: Reputation: 32
Is there an easy way to create portable apps, perhaps using apt-get?


Here's my dilemma:

I'm using Debian Squeeze on an XO laptop, which has only 256 megs of ram and only 1gb of storage space.

For a commander-like file manager, I'd like to use the very ancient emelfm (not emelfm2).

Problem is, even when I add a woody or etch archive to my apt.sources file, I get error messages that emelfm requires obsolete dependencies which would interfere with my system.

So, is there an easy way that I could install emelfm and its ancient dependencies in its own folder, perhaps in /opt, where it cannot interfere with the rest of my system?

(BTW: I'm only using emelfm as one example. There have been other times where the ability to install something as a portable app would have been very useful to me.)
 
Old 12-10-2009, 05:55 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Edited.

I was going to suggest MC but I guess that is still not what you want.

Last edited by jefro; 12-10-2009 at 05:58 PM.
 
Old 12-10-2009, 09:03 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
So, is there an easy way that I could install emelfm and its ancient dependencies in its own folder, perhaps in /opt, where it cannot interfere with the rest of my system?
Not so much an easy way, but an alternate way.

Download the source files for the application and it's dependencies. Run "./configure -help" to get a list of configuration options. In those options you will find options that allow you to specify where to install things, such as where to put the executable, libs, etc. It will, without doubt, take some trial and error to get it all worked out.

Do some google searching for "alternate installation prefixes" for additional reading on the subject.
 
1 members found this post helpful.
Old 12-11-2009, 03:32 AM   #4
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by roystonlodge View Post
Here's my dilemma:

I'm using Debian Squeeze on an XO laptop, which has only 256 megs of ram and only 1gb of storage space.

For a commander-like file manager, I'd like to use the very ancient emelfm (not emelfm2).

Problem is, even when I add a woody or etch archive to my apt.sources file, I get error messages that emelfm requires obsolete dependencies which would interfere with my system.

So, is there an easy way that I could install emelfm and its ancient dependencies in its own folder, perhaps in /opt, where it cannot interfere with the rest of my system?

(BTW: I'm only using emelfm as one example. There have been other times where the ability to install something as a portable app would have been very useful to me.)
If way suggested by bigrigdriver doesn't work (It's not always easy to build ancient software on modern Linux - gcc now is a lot stricter) you can try following:
- Install on the spare box or in the VM Linux version on which your program can be installed without to much fuss.
- Install your program
- Use statifier (http://statifier.sf.com) or Ermine (http://magicErmine,com) to create self-containing executable.

Then just copy it to the target system - it should work.

Both statifier and Ermine pack into self-containing exe original executable and all it's shared library.
Statifier is licensed under GPLv2+, Ermine is commercial.
On the other hand statifed executable don't like too much system with memory randomization, but ermine-packed behave well on those systems
 
Old 12-11-2009, 01:52 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Emelfm-0.9.2 will compile in 20 seconds with e.g. gcc-4.4.1.
( One bug : replace po/cs.po with an empty file, cs.po ).

You will need these small packages from Debian Lenny :
libglib1.2ldbl, libglib1.2-dev,
libgtk1.2, libgtk1.2-dev, libgtk1.2-common,
.. total 2.4 MB.

The '-dev' packages ( 1.3 MB ) can afterwards be removed.
.....
..... .. ..
.....

Last edited by knudfl; 12-11-2009 at 03:26 PM.
 
  


Reply



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
LXer: Create a Local Ubuntu Repository using Apt-Mirror and Apt-Cacher LXer Syndicated Linux News 0 08-04-2009 10:13 PM
Easy-Portable external USB-drive Linux system armandino Linux - Hardware 2 02-10-2009 02:16 PM
Portable Apps for Linux? fudam Linux - General 6 01-06-2008 01:48 PM
Get around MS software when using Windows with portable apps sludink Linux - News 0 02-17-2006 04:08 PM
LXer: Get around MS software when using Windows with portable apps LXer Syndicated Linux News 0 02-13-2006 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:55 PM.

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
Open Source Consulting | Domain Registration