Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am wondering how is it possible somebody to make a non-free application under Ubuntu.

Being an open-source programmer, I've found that in order to make even the simplest program I use libraries that are Open Source and thus, I can legally use them only if my program is going to be free and open source.

So, I wonder, in order to develop a non-free application you require to write all the libraries you are going to use yourself and you cannot have open source dependencies etc?

share|improve this question
add comment

1 Answer

up vote 21 down vote accepted

This is not really true. Only the GPL license and a few related licenses are "copyleft", forcing you to opensource the software constructed based on the GPL software. However, you can freely use for example the LGPL libraries. In fact, the LGPL was created specifically with this goal in mind -- creating closed source applications with shared open source LGPL libraries. Moreover, under BSD or BSD-like license (for example, Python) allows you to essentially take as it is and do whatever you like with it.

In other words, open source does not enforce open source. Moreover, opensource does not mean "free as in beer". You are perfectly allowed to charge for open source programs, or create an open source program but ask for money when selling data (like media files or resources associated with that program).

To sum it up:

  • BSD-like licenses allow you to freely modify and distribute the code as you see fit;
  • LGPL (lesser GNU public license) allows the creation of proprietary code linked to shared libraries which are open source. For example, the entire glibc is LGPL;
  • GPL license forces you to distribute any modifications to a GPL-program under GPL.

Thus, you can happily write your program, linking it to a broad range of libraries or even directly incorporating pieces of alien code, compile it and sell it as a proprietary, closed source program, as long as you do not distribute modified GPL'ed programs.

share|improve this answer
    
Thanks for clearing this out for me :) –  hakermania Sep 21 '12 at 13:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.