The permission bit in a file mode that allows a file to be run as a program. Also, questions related the format of program files, and to locating and executing program files.
2
votes
1answer
356 views
Cannot open shared object file when using D compiler
I had ldc2 and gdc compiled from source and working up until a month ago. Nothing has changed, except I can't remember the variable(s) I would set in the terminal to get ldc2 and gdc to work.
I get ...
12
votes
1answer
390 views
Why does the file command say that ELF binaries are for Linux 2.6.9?
Whenever I run file on an ELF binary I get this output:
[jonescb@localhost ~]$ file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.6.9, dynamically linked ...
11
votes
2answers
4k views
Getting “Not found” message when running a 32-bit binary on a 64-bit system
I have currently a strange problem on debian (wheezy/amd64).
I have created a chroot to install a server (i can't give any more detail about it, sorry). Let's call its path /chr_path/.
To make things ...
3
votes
2answers
991 views
Running C Programs on Linux
I watched a video lecture today that introduced C and things like how to make a C program that will run in Linux. I followed the steps given and now I'm stuck with a bit of a problem.
I created my C ...
6
votes
2answers
2k views
Creating Static Binary
I installed an application [ e.g. fdisk ]. But it required libraries for execution. I am looking for utility/tool which will help me to create a static binary from already installed binaries. So that ...
0
votes
1answer
3k views
Modelsim for ubuntu
I am looking to download modelsim for ubuntu. But the site gives only .exe file. Can I still install the software? Does modelsim exist for ubuntu? If yes, where can I find it?
Thank you.
1
vote
1answer
263 views
How to block the execution of files owned by root through lighttpd?
I've created a group and a user to run lighttpd.
I would like to run from the web server only files that have these permissions (myuser:mygroup). I don't want to run files with root permissions.
Is ...
1
vote
1answer
279 views
No exec permissions on programs in /usr/local/bin
I have installed the newest Erlang from source. As the final step I have executed
sudo make install
Among other things, it placed erl link in /usr/local/bin, but its permissions are insufficient ...
1
vote
1answer
1k views
“No such file or directory” lies on Optware installed binaries
I've been using Optware to install packages on my ARM-based NAS for a while - the usual stuff like Transmission, Samba and others. However, I'd been having problems with Transmission hanging not long ...
6
votes
2answers
3k views
Binary compatibility between Mac OS X and Linux
Brace yourselves, this question will likely appear naive and/or foolish, seeing as I am relatively new to the inner workings of unix like systems, and programming in general.
Ready? Ok! I will go ...
6
votes
1answer
344 views
Why do some symbolic links affect program behavior?
One thing that has been puzzling me for some time is this:
% which halt
/sbin/halt
% file /sbin/halt
/sbin/halt: symbolic link to `reboot'
However, executing sudo halt does, of course, not reboot ...
3
votes
1answer
472 views
More doubts in bzImage
The description of the bzImage in Wikipedia is really confusing me.
The above picture is from Wikipedia, but the line next to it is:
The bzImage file is in a specific
format: It contains ...
34
votes
2answers
6k views
How do I clear Bash's cache of paths to executables?
When I execute a program without specifying the full path to the executable, and Bash must search the directories in $PATH to find the binary, it seems that Bash remembers the path in some sort of ...
5
votes
2answers
656 views
Find command: Searching for executable files
What type of parameter/flag can I use with the unix find command so that I search executables?
(if this question is better suited for another stackexchange forum, I welcome you telling me so)
p.s. ...
18
votes
4answers
2k views
Why do we use “./” to execute a file?
Why do we use ./filename to execute a file in linux?
Why not just enter it like other commands gcc, ls etc...
20
votes
6answers
13k views
What is /usr/local/bin? Came across it in an script installation for Applescript but would like to know more
Before today, I've used Terminal to a limited extent of moving in and out of directories, changing the dates of files using the touch command, but had realised the full extent of Terminal after ...
3
votes
1answer
9k views
./executable: cannot execute binary file
I have a script that works well when I ssh to the server to execute it myself, but has problems when Hudson, a continuous integration server, runs it.
I am automating tests on an embedded linux ...
18
votes
4answers
4k views
What makes OSX programs not runnable on Linux?
I know there are many differences between OSX and Linux, but what makes them so totally different, that makes them fundamentally incompatible?
17
votes
8answers
7k views
Different ways to execute a shell script
There a several ways to execute a script, the ones I know are:
/path/to/script # using the path (absolute or relative)
. script # using the . (dot)
source script # using the `source` command
...
10
votes
1answer
4k views
What are stripped and not-stripped executables in Unix?
From man file,
EXAMPLES
$ file file.c file /dev/{wd0a,hda}
file.c: C program text
file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses ...
8
votes
5answers
3k views
Can we get compiler information from an elf binary?
Is there some chance to know how a binary was built, under Linux? (and or other Unix)
Compiler, version, time, flags etc...
I looked at readelf and couldn't find much, but there might be other ways ...