Installing Everywhere?
PlainBlack queries: "Our company has been developing an open source project for a couple years now that has gotten pretty popular. The one thing we haven't yet figured out how to do well is packaging. It seems like every operating system has it's own standards for packaging, and installers, and for each OS we support, we end up adding a lot of time to our packaging process. So my question is, what do all of you do to package your apps? Do you just release source tarballs? Do you manually package your RPMs, EXEs, DEBs, DMGs, BINs, PKGs, [and MSIs] by hand? Do you have an automated build process that creates all the packages? If so, how does it work? Is it available for other developers to use?" There are tons of installers listed on SourceForge, but which one allows the creation of OS packages without too much hassle? Duplicating work, especially software installation procedures, across all supported OSes, is time consuming. Is there an easier way?
InstallShield and Wise are perhaps the best-known products for deployment management. Use the professional products, they might add a little to the bottom line of the products, but will save hours of support time from angry users calling and asking where they can get the missing library.
Or switch to Java/.NET, lots of issues related to DLL Hell have been solved there.
A self-extracting installer can be produced for every platform. Unless your application needs to become a part of the platform, it should be isolable, and installation should be as simple as expanding a self-expanding archive. Such archives can be produced for every popular platform. Using dependency=tracking packages is not feasible if you require that your installation model be cross-platform, but that's really no big loss: by including all of the dependencies for each application within the applications own directory, dependency conflicts are effectively eliminated.
Or you can do it all in Java, and it doesn't matter what your platform is. Webstart rocks these days.
-I like my women like I like my tea: green-
... but why do installs need to happen in a lot of cases? I mean, there are some situations that it's a no-brainer. But why can't a large majority of apps out there just run straight out of what directory they are in?
As I mentioned in the subject, I'm a little naieve here. The concept of 'installing' software has always baffled me. I think I'm just missing an important bit of info here.
"Derp de derp."
Almost every platform has an X-Windows 'client' - just run around and install the X-Windows client and get it to point to one Application server. Then you just upgrade the Applciation Server and presto - you're done.
Applications that need to print ar a pain, amung other problems, but if you can get away with it then this works well.
Moneyed corporations, non-working 'poor' and criminal prisoners are turning productive citizens into tax-slaves.
I've seen .JAR files (Java) that worked on every platform. I think it was part of SourceForge's JEdit project.
More than enough BS
haha. awesome. thanks for that: now no one else has to.
Of course, by replying to this I'm bringing on a few more i'm sure.
i think the easiest thing to do, is do it the 'rollyourown' way,
just make a big binary file that on executes checks its enviroment;
what is my $PATH?, where is my ld.so configured?, am i root?, etc
then just extract your parts in the correct directories
if the software is good enough normally the community itself will mail you with packaging offers for various platforms
Seems that there are two ways people go on this.
1) Put everything into one huge directory. Create all the symlinks and path extensions etc.
2) Out things in the 'correct' directories (/usr/bin for exectuables,
THe first ie easier to install and for the user to find and wipe out. The second is easier for users that have many apps on theri system (especially if config files for $app are in
On windows you don't really have that option, but you don't tend to run as many apps from the command line (which is the real reason there is a space in c:\Program Files\) And the tendancy is to put config stuff in the registry.
Check out Ant. As part of a build process it knows about jars, rpms , cabs and zips. I'll bet there is a taks out there for creating
Open Source Identity Management: FreeIPA.org
I rather download my win32 programs in .zip format, and unix files in .tar.bz. Thats it, installers are overkill.
.zip/.gz formats, so they don't have to mess with the installers? Lots.
.conf/.ini files I can backup. Makes it easy for me to restore the system. Having to restore the entire OS for an application is shitty design. Bad enough in windows I have to take registry snapshots to save the registry keys. In unix symlinks pointing to symlinks just to point to a .conf file in another directory. I think some developers have been sitting in front of their computer too long to know what the real environment of a production system is...
Why do developers force the users to put applications when they don't know the system. How many windows apps install in C: with your program files is on D: or another partition. Stop forcing the users, and make your programs run out of its own directory.
Just look at how many people only download mozilla in the
And to top it off, no installer means no extra work get the program out the door. And makes a certain level of support, if they cant unzip the file, they need to pay for your premium support package.
Final thought, no install script means registry or other files I have to backup on a reinstall. Just give me a directory with
InnoSetup on Windows is really good, although some people also swear by NSIS (NullSoft Installer (brought to you by the same people who did winamp.
Installing Everywhere? Use InstallAnywhere, a cross platform Java installer. Nasty licensing and pricey though.
In your 'Package Explorer' view, just click on your jardesc and choose 'Create JAR'. If you release often, you can make yourself a script to automatically put the results online or send by email, etc.
I'm sure there is a need for a mature, full featured, easy to use, cross platform installer that's open source. Unfortunately I don't know of one nor am I capable of creating one right now - although it's a good idea. Most of what you found in your search are installers for MySQL, Apache, PHP, etc. What I do know is that InstallAnywhere installers always seem to work on whatever platform I'm using (Win, Lin, Mac). They have an unlimited evaluation period and I'm sure you could get some nice extras by paying some money. I also suggest looking at AutoIt which is free (soon to be open source). It can be real nice when working around quirks in Windows.
If you really feel you need to do something original, you could as well not install at all, or use Zero Install (Covered on Sweetcode recently).
/usr/local/ as default (bin/, lib/, man/ etc/ etc.), and provide packages for distributions.
But in general (if you are not running under an interpreter or emulation layer) all applications should install in a compatible way on any system, even when that is quite different from a system to another. So on Unix install in a reloctable directory tree with
The usual way to do that is to prepare make targets (such as "make debian" and "make redhat" and use the defualt packaging system everywhere. Not that I would know how to do that on Windows...
You will have to distribute sources or build it yourself on each platform, and that represents the real problem. Getting the make targets right is the easy part - many free software applications contain that, and all distributions come with nice examples.
(Besides, Debian's Package Builder makes for an excellent multiarchitecture (11!) compilation cluster and should be a good reason to provide and mantain debian packages.)
-Kvorg
If you support several platforms then you have to package differently for each and maintain for each. If you have a home grown system like us we have one system that works on all the platforms we support and it is easier to deal with. Basically it is a set of bourne shell scripts to untar our stuff from cd to disk and setup a few things on the system like in teh /etc dir.
Only 'flamers' flame!
Does slashdot hate my posts?
Speaking as someone who worked a lot on NetBSD's 3rd party software system, pkgsrc, which today has ~4.000 pkgs:
/proc is the same on all Systems, don't use clone(2), etc). /bin/sh == Bash
It's less important for software to come "pre-packages" properly, but that both the code and the build infrastructure are written with portability in mind in the first stop.
* Make sure your software compiles on non-i386 non-Linux (don't #include , don't assume
* Make sure it can be relocated (configure --prefix=/foo working properly if you have to use GNU autoconf).
* Don't assume everyone uses GNU make
* Don't assume
* Don't depend on obscure non-easy to install software components (that again may not be present on non-i386 non-Linux - think Java!).
If that is done, your software can be added to any 3rd party package systems easily.
- Hubert
You should focus on the source code, and work with red hat, debian, gentoo, *bsd, etc to make sure your code is easy enough to compile and for them to package.
- your program has a particular appeal to newbies and it is not included with most distributions,
- the build procedure is unusually complex, or
- your program takes ridiculously long to build.
I think most experienced Unix people are comfortable with building from source, and many people just don't trust third-party packages, as they're often badly packaged or out of date.If you decide to do it anyway, one tool that can help you is checkinstall. It monitors the standard make install process and can create several kinds of packages. I doubt the quality of the generated packages is very good though, and you still have to take in account that different distributions have different policies.
Also, make sure you don't waste effort creating packages for distributions that already include your program. You mention DEBs, but whatever your program is, I'm pretty sure Debian already includes it :)
The Loki Installer stuff is pretty sweet: http://www.megastep.org/makeself/
Never used it for windows.
Obvious idea seems to me, if it's a massively multiplatform thing, that runs on all sorts of different things from Windows to *nixes to every other thing under the sun:
... so on so forth for each OS ...
Include a script / batch file / EXE / binary / whatever along with a compressed archive inside the main archive:
ie:
CoolSoftware-1.0.zip
contains:
package.tar.bz2
setup.exe (windows)
setup.sh (unix)
INSTALL.EXE (vms)
then your install program figures out what the heck to do with the archived files, depending on what the host system is.
Seems obvious to me. Am I wrong?
"Champagne for my real friends - and real pain for my sham friends!" http://ericblade.postalboard.com/
If you must release binaries, do it in the Slackware format. They're just tarballs with install scripts. Everyone's got tar.
-- My comment is above.
Are you a programmer? Simple HTTP isn't that hard. Anyway, just about every language has some sort of HTTP library. I believe both Python and Perl's standard distribution comes with one. There is one for C at w3.org. I serously doubt even Microsoft wouldn't include some sort of library to facilitate downloading with HTTP--they merged an entire web browser into their operating system after all.
Would it be too hard to find a standard way to form installation packages? A meta package which would hold the needed information. Then you could write an OS specific installer which installs the meta packages or converters to convert meta packages to OS specific packages/installers.
/usr/local/bin according to OS specific package handlers.. Well.. Executables should be provided separately unless we are packaging source-only with compilation instructions..
I know there are some hard parts to solve like lack of similiar file structure, different executable formats and lack of unified scripting language.. But could this be possible?
Perl can be used on almost any system for meta scripts, file system could be defined using a meta language like $programs.$appname.$executables which would translate to C:/Program files/AppName or
I'm surely not the best man to speculate this - is there anyone who could give a good view on the problems of this kind of approach? It would surely make life a lot easier for the end users if they could install any package with their favourite installer app.. Easy wizard installers for beginners and more complicated but more versatile installers for advanced users..
Hey, Easy Package Manager looks great. It's comparative table of existing installer/packager formats is a good answer to this topic. And it even has a FLTK graphical frontend (I love FLTK for its speed, lack of bloat and beautul API). However, it does not support Windows, which is raher logical from the design point of view.
But I found a nice list of existing packaging tools at the A-A-P which "makes it easy to locate, download, build and install software. It also supports browsing source code, developing programs, managing different versions and distribution of software and documentation." Definitely worth a look!
-Kvorg
Actually that was one version, its just using Genetic algorithms to evolve
Release a zip and a tar.gz, and let them figure the rest out!
I am a great fan of software that you simply extract into a directory, and run from there. Ideally, any further installation would be done by the application itself when it is run and detects that its being run for the first time.
I have used GNU autotools on the projects that I've worked, whether my own or started by someone else.
There's a feature of GNU autotools that lets you make dist to roll a tarball of your package. Very easy, very neat and you don't have to worry about installers when you send source code.
Just be sure to wear the gold uniform when you beam down -- you know what happens when you wear the red one.
Vim's author, Bram Moolenaar, is working on a multi-platform software installer/maintainer called AAP. It's still young, but might be what the OP is looking for.
There is no need to use a SlashDot sig for SEO...
Too right. Use Common Lisp.
Check out Install Anywhere. Builds cross-platform installs and web-based installs. There's a free version for non-commercial products as well. Very nice tool.
sun must hire you people to spam this crap on here. ever try installing java on netbsd or linux or debian? or freebsd? and then trying to do something like install netscape and/or openoffice.org as well? and have version incompatibility problems?