LinuxQuestions.org
Help answer threads with 0 replies.
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 05-11-2013, 06:57 AM   #1
LeHibou2
LQ Newbie
 
Registered: Feb 2013
Posts: 20

Rep: Reputation: Disabled
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
 
Old 05-11-2013, 07:36 AM   #2
lllux
LQ Newbie
 
Registered: Apr 2013
Posts: 11

Rep: Reputation: Disabled
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.
 
Old 05-11-2013, 08:23 AM   #3
LeHibou2
LQ Newbie
 
Registered: Feb 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
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.

Last edited by LeHibou2; 05-11-2013 at 08:48 AM.
 
Old 05-11-2013, 01:54 PM   #4
lllux
LQ Newbie
 
Registered: Apr 2013
Posts: 11

Rep: Reputation: Disabled
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.
 
Old 06-04-2013, 07:42 AM   #5
Mr,Sam
LQ Newbie
 
Registered: Mar 2013
Location: saudi arabia
Distribution: opensuse and backtrack5 r3
Posts: 1

Rep: Reputation: Disabled
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""
 
Old 06-11-2013, 10:08 PM   #6
ed_dante
LQ Newbie
 
Registered: Jun 2013
Posts: 2
Blog Entries: 1

Rep: Reputation: Disabled
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)
 
Old 06-12-2013, 12:08 AM   #7
ed_dante
LQ Newbie
 
Registered: Jun 2013
Posts: 2
Blog Entries: 1

Rep: Reputation: Disabled
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.
 
  


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
How can I uninstall a python package installed with python setup.py install? milomak Linux - Software 1 11-16-2009 10:22 PM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 09:30 PM
How do i install python 3.0 unixshell101 Fedora 1 12-04-2008 03:49 AM
install python 2.3 ,necssary to remove python 2.2 ngan_yine Linux - Newbie 7 12-28-2003 05:07 PM
Python install ixion Linux From Scratch 1 04-16-2003 11:00 AM

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

All times are GMT -5. The time now is 07:37 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