Questions tagged [executable]

An executable is a binary file that can be executed by the operating system.

An executable is a binary file that can be executed by the operating system.

3697 questions
1050
votes
19 answers

How can I make a Python script standalone executable to run without ANY dependency?

I'm building a Python application and don't want to force my clients to install Python and modules. So, is there a way to compile a Python script to be a standalone executable?
Jeff
  • 14,365
  • 8
  • 30
  • 30
232
votes
15 answers

Finding current executable's path without /proc/self/exe

It seems to me that Linux has it easy with /proc/self/exe. But I'd like to know if there is a convenient way to find the current application's directory in C/C++ with cross-platform interfaces. I've seen some projects mucking around with argv[0],…
Uros Dimitrijevic
  • 2,541
  • 3
  • 16
  • 6
219
votes
6 answers

Running a Haskell program on the Android OS

Forenote: This is an extension of the thread started on /r/haskell Lets start with the facts: Android is one awesome Operating System Haskell is the best programming language on the planet Therefore, clearly, combining them would make Android…
Robert Massaioli
  • 13,379
  • 7
  • 57
  • 73
203
votes
7 answers

How do I make this file.sh executable via double click?

First off I'm using Mac. Next, I need to execute this "file.sh" we will call it. Everytime I need to execute it I have to open Terminal and type: cd /Users/Jacob/Documents/folderWithFileInIt bash file.sh This is okay, but I feel like it would be a…
Jacob
  • 3,835
  • 8
  • 25
  • 25
175
votes
22 answers

"No such file or directory" but it exists

I simply want to run an executable from the command line, ./arm-mingw32ce-g++, but then I get the error message, bash: ./arm-mingw32ce-g++: No such file or directory I'm running Ubuntu Linux 10.10. ls -l lists -rwxr-xr-x 1 root root 433308…
Warpspace
  • 3,215
  • 3
  • 21
  • 24
170
votes
25 answers

Get path of executable

I know this question has been asked before but I still haven't seen a satisfactory answer, or a definitive "no, this cannot be done", so I'll ask again! All I want to do is get the path to the currently running executable, either as an absolute path…
Ben Hymers
  • 25,586
  • 16
  • 59
  • 84
149
votes
3 answers

Difference between Groovy Binary and Source release?

I have been seeing the words binary and source release in many websites download sections. What do they actually mean? For example, I have seen this in Groovy download page. My question is how they differ? Both tend to install Groovy, but what's…
Ant's
  • 13,545
  • 27
  • 98
  • 148
144
votes
4 answers

How to compile python script to binary executable

I need to convert a Python script to a Windows executable. I have Python 2.6 installed to python26. I have created one script and kept it in C:\pythonscript. Inside this folder there are two files Setup.py and oldlogs.py (this file need…
Dewal Tewari
  • 1,449
  • 2
  • 10
  • 3
133
votes
10 answers

How to disassemble a binary executable in Linux to get the assembly code?

I was told to use a disassembler. Does gcc have anything built in? What is the easiest way to do this?
Syntax_Error
  • 5,964
  • 15
  • 53
  • 73
131
votes
7 answers

Compiling a java program into an executable

Possible Duplicate: How do I create an .exe for a Java program? I've just made a simple program with Eclipse and I want to compile it into an executable, but simply can't seem to find out how to do it.
Meir
  • 12,285
  • 19
  • 58
  • 70
127
votes
3 answers

Reason for huge size of compiled executable of Go

I complied a hello world Go program which generated native executable on my linux machine. But I was surprised to see the size of the simple Hello world Go program, it was 1.9MB ! Why is it that the executable of such a simple program in Go is so…
Karthic Rao
  • 3,624
  • 8
  • 30
  • 44
125
votes
1 answer

R.exe, Rcmd.exe, Rscript.exe and Rterm.exe: what's the difference?

I'm struggling with the different R executables. What is the difference between R.exe (with or without CMD BATCH option), Rcmd.exe, Rscript.exe and Rterm.exe when running command line in a batch file? And what is the difference between: R.exe…
waanders
  • 8,907
  • 22
  • 70
  • 102
122
votes
12 answers

How do you avoid over-populating the PATH Environment Variable in Windows?

I would like to know what are the approaches that you use to manage the executables in your system. For example I have almost everything accessible through the command line, but now I come to the limit of the path string, so i can't add any more…
mjsr
  • 7,410
  • 18
  • 57
  • 83
121
votes
15 answers

Running an outside program (executable) in Python?

I just started working on Python and have been trying to run an outside executable from Python. I have an executable for a program written in Fortran. Let’s say the name for the executable is flow.exe, and my executable is located in C:\Documents…
Mesut
  • 1,231
  • 3
  • 10
  • 5
120
votes
16 answers

Are there any smart cases of runtime code modification?

Can you think of any legitimate (smart) uses for runtime code modification (program modifying it's own code at runtime)? Modern operating systems seem to frown upon programs that do this since this technique has been used by viruses to avoid…
1
2 3
99 100