LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   c++ or python without install (https://www.linuxquestions.org/questions/linux-software-2/c-or-python-without-install-4175461531/)

LeHibou2 05-11-2013 05:57 AM

c++ or python without install
 
Hello,

I am just wondering something.

I need a really small ram footprint.

I can develop in c++ and Python but never did an application deployment
(Windows, Osx and, of course, Linux).

I wish I could launch a c++ script (or at least python but...) without ever bother my users to install anything.

Ideally, it would have everything it needs already packaged inside.

My script doesn't have fancy thing, just value checkers. C++ might help : fast and cpu+ram respectful.

How could I deploy with such a constraint ?

It would be great if I could avoid the .exe or .dmg thing. One simple script. Cross-platform.

Any idea or help to give me ?

Thanks,

LeHibou2

lllux 05-11-2013 06:36 AM

I don't think what your looking for exists. I don't know of any scripting language native to windows and linux.

If its a super simple script, might be easiest to write it twice, one windows, (powershell or whatever) and one bash/python for linux. If its more complex, prompt for a Python/perl/LUA install on windows.

LeHibou2 05-11-2013 07:23 AM

Hello,

I can afford to compile for every platform : linux, freebsd, osx and win.

I just want to be sure that every people will be able to launch it without any hassle (missing library and so on).

Do you think it is possible with that angle of attack ?

Python is a good example : you can embed everything and let people run it without installing anything. Blender3D is a good example of it.

lllux 05-11-2013 12:54 PM

I'm confused as to what your looking for but I'm going to post this anyway... take it with a pinch of salt.

Java MIGHT be the cure for your cross platform woes. Its semi native(ish) on a great deal of devices and might allow you to shrink the size of your package.

With a bit more effort I'm sure packaging everything up (no non native dependencies) would be possible in C++ (with different executables for win/*nix), but I don't know much about the windows side of things I'm afraid.

Mr,Sam 06-04-2013 06:42 AM

Good I'm glad for your idea & your determination,

But non Pr.Lang or Scr.Lang
Compatible with all systems without installing libraries, or certain software, such as (JVM) Also can not be any program without programming libraries and interpreter of the language, even if there is assembly language interpreted this language in computer architecture is there doubt about it!

And Java is good it is in all OSystems
But my Advice For U "Write By Python , and Mark your focus on one project and one language best to improve the performance of your product""

ed_dante 06-11-2013 09:08 PM

Hi LeHibou2 !!

Actually I'm trying to reach a similar goal and decided
for python. The only request for the user is to have a python interpreter.

I'm using python and a GUI native to python called TKinter so I can run it with out problems in windows, ubuntu ...
Beware about using function available in the OS you are considering...

Hope to help u
(this is my first post)

ed_dante 06-11-2013 11:08 PM

learning to use linuxquestions
 
I found this on wikipedia :

Scripts and interpreted languages

A script can be considered to be cross-platform if its interpreter is available on multiple platforms and the script only uses the facilities provided by the language. That is, a script written in Python for a Unix-like system will likely run with little or no modification on Windows, because Python also runs on Windows; there is also more than one implementation of Python that will run the same scripts (e.g., IronPython for .NET). The same goes for many of the open source programming languages that are available and are scripting languages.
Unlike binary executables, the same script can be used on all computers that have software to interpret the script. This is because the script is generally stored in plain text in a text file. There may be some issues, however, such as the type of new line character that sits between the lines. Generally, however, little or no work has to be done to make a script written for one system, run on another.


All times are GMT -5. The time now is 11:52 AM.