LinuxQuestions.org
Review your favorite Linux distribution.
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 06-04-2016, 03:23 PM   #1
ME_L
LQ Newbie
 
Registered: Jun 2016
Posts: 1

Rep: Reputation: Disabled
Same SW on different Linux Distributions - what should be impacted?


I have a software I want to publish for different distributions of linux.
Can someone reference me to relevant posts or articles of what would be impacted between the different distributions.
I do not want to perform full testing on each distribution.
I know power and performance may be impacted as well as basic sanity (dependencies exist etc.).

where can i learn more about this subject?
 
Old 06-04-2016, 08:55 PM   #2
robertdaleweir
Member
 
Registered: Jul 2006
Location: Canada
Distribution: Fedora
Posts: 93

Rep: Reputation: 11
Quote:
Originally Posted by ME_L View Post
I have a software I want to publish for different distributions of linux.
Can someone reference me to relevant posts or articles of what would be impacted between the different distributions.
I do not want to perform full testing on each distribution.
I know power and performance may be impacted as well as basic sanity (dependencies exist etc.).

where can i learn more about this subject?
Hi ME_L
Have you considered a Container Approach such as is used at the following URL ---> https://bintray.com/probono/AppImages#
 
1 members found this post helpful.
Old 06-05-2016, 12:06 PM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,871

Rep: Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169
Well I've just tried AppImages with their demo program. I discovered the program would only run if launched as root, since it depends on FUSE and I didn't have permission to use that. I tried making myself a member of the FUSE group, but that didn't help. Since running things as root is not a good idea, it seems AppImages has some way to go.

Traditionally, you release software as source code with a list of required dependencies, but that obviously puts off the non-technical. Creating a .deb package will work on about half the distros, but that still leaves out major players like SUSE and Fedora.

Last edited by DavidMcCann; 06-05-2016 at 12:26 PM. Reason: new information
 
Old 06-05-2016, 02:13 PM   #4
robertdaleweir
Member
 
Registered: Jul 2006
Location: Canada
Distribution: Fedora
Posts: 93

Rep: Reputation: 11
Smile

Quote:
Originally Posted by DavidMcCann View Post
Well I've just tried AppImages with their demo program. I discovered the program would only run if launched as root, since it depends on FUSE and I didn't have permission to use that. I tried making myself a member of the FUSE group, but that didn't help. Since running things as root is not a good idea, it seems AppImages has some way to go.

Traditionally, you release software as source code with a list of required dependencies, but that obviously puts off the non-technical. Creating a .deb package will work on about half the distros, but that still leaves out major players like SUSE and Fedora.
Hi DavidMcCann
I am running Fedora 21. I just downloaded Firefox 46.0 as a regular user and using Nautilus changed the permissions to 'execute'. I then copied it to my Desktop and clicked on it and it ran, no problem. I have alsoused it Fedora 17 on another box and it worked the same. Maybe you downloaded it as 'root' and that is why it only runs as 'root'.
I am replying within the Firefox 46.0 AppImage version.
 
1 members found this post helpful.
Old 06-05-2016, 03:10 PM   #5
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,075

Rep: Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725
Firstly, I agree strongly with robertdaleweir. AppImages are EXACTLY the solution you are looking for, and now that Krita uses them I hope that more projects will. They abstract distro-specific quirks by running in a self-launching ISO, they require no install, they do not require root to run or install (since they don't need to be installed), and they mean you can build your package once or twice (32, 64 bit versions) and run basically on any Linux.

I use AppImages to release a stop motion animation software for schools, and it runs perfectly, regardless of distro.

Strongly recommended!


Secondly: technically speaking, differences in distros bouls down to the library versions they ship with and, sometimes, file structure. The latter is *usually* not a big deal, because as long as the PATH env is set correctly, your app should be able to find what it needs no matter where it happens to be installed.

The former, however, can get tricky. If you compile your application against glibc 2.12 and someone is using 2.17, then maybe there will be incompatibilities (maybe not; I have not actually tested that, I'm just imagining a scenario). If your application is linked against libfoo.so.4 but someone is using libfoo.so.5, then your application will throw an error; the fix will be that the user updates libfoo, or else the user symlinks libfoo.so.5 to libfoo.so.4 to trick your application into running. Usually works, but obviously it could cause problems.

The safer thing to do is to target a sensibly recent glibc (not too recent, but "popular"; take a look at Red Hat, Ubuntu, Slackware, and Debian, to see what everyone is shipping with currently) and just bundle in all the extra libs that you link against. Create an AppImage. Done.

If you really don't want to use AppImage, I would still bundle the libs. Use -rpath to compile against them in their "bundled" directory, and you're still basically running distro-independent.

Last edited by notKlaatu; 06-05-2016 at 03:13 PM.
 
  


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
LXer: Healthcare one of the most impacted industries by open source LXer Syndicated Linux News 0 12-26-2014 03:30 PM
Find impacted exe's for the given function name amarg Programming 2 12-03-2010 09:49 AM

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

All times are GMT -5. The time now is 05:22 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
Open Source Consulting | Domain Registration