Tagged Questions
3
votes
1answer
46 views
“No such file or directory” on an executable, yet file exists and ldd reports all libraries present
ldd xls
linux-gate.so.1 => (0xb77bc000)
libQtGui.so.4 => /usr/lib/i386-linux-gnu/libQtGui.so.4 (0xb6cc2000)
libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb6c98000)
...
0
votes
2answers
55 views
How many types of architectures and OSes
I am trying to write a script python script that is supposed to run across all linux based OSes. The python script invokes executables of few existing tools(for example pathload and iperf) that I have ...
0
votes
3answers
140 views
Is shebang always the same as the interpreter's installation directory?
Must the shebang header always match the interpreter's installation directory? If so, then why do both #!/usr/bin/python and #!/usr/local/bin/python work for me?
7
votes
1answer
846 views
how to convert a shell script into binary executable?
I want to convert my shell scripts into binary executable so that nobody else could edit or read it.Is there any way to convert it into binary executable?
10
votes
2answers
295 views
Shebang line with `#!/usr/bin/env command --argument` fails on Linux
I've got a simple script:
#!/usr/bin/env ruby --verbose
# script.rb
puts "hi"
On my OSX box, it runs fine:
osx% ./script.rb
hi
However, on my linux box, it throws an error
linux% ./script.rb
...
0
votes
2answers
113 views
Why won't my binary run?
I have a binary that runs on my Debian Squeeze system, but then it doesn't do anything on my Debian Wheezy (kernel Linux 3.2.0-4-amd64) system. Both systems are 64 bit, while the executable is a 32 ...
0
votes
1answer
65 views
Are .so files in Fedora considered ELF files?
ELF 'Executable and Linkable Format' So if I generate Shared Object files .so are those considered ELF files?
9
votes
1answer
389 views
What is Linux doing differently that allows me to remove/replace files where Windows would complain the file is currently in use?
The example I have is Minecraft. When running Bukkit on Linux I can remove or update the .jar files in the /plugins folder and simply run the 'reload' command.
In Windows, I have to take the whole ...
1
vote
2answers
264 views
Ubuntu Linux and SCO UNIX OpenServer
Can Ubuntu Linux run SCO UNIX OpenServer 5.0.7 applications like filePro? Can I use CTAR to copy application directories from a CTAR backup tape to Linux Ubuntu?
2
votes
0answers
204 views
Can capabilities be used in scripts without setcap'ing the interpreter binary?
Right now I'm using cap_net_bind_service MY_USERNAME in /etc/security/capability.conf.
Now I just need to set cap_net_bind_service+i on the interpreter of my favouite scripting language to be able to ...
1
vote
1answer
262 views
ld-uClibc.so missing
I am trying to run an executable on Angstrom Linux, but ash tells me
-sh: ./myEx: not found
I've checked with readelf the program interpreter and it is
root@beagleboard:~# readelf -l myEx | grep ...
3
votes
1answer
71 views
What does CONFIG_IA32_AOUT do actually?
I'm running a 64bit kernel, already have CONFIG_IA32_EMULATION set, so do I still need CONFIG_IA32_AOUT enabled?
From the help in menuconfig, I don't quite get it.
3
votes
3answers
98 views
Join the executable and all its libraries
Lets say I have a /bin/cat executable that uses the following shared libraries:
linux-vdso.so.1
libc.so.6
/lib64/ld-linux-x86-64.so.2
Is it possible to somehow "join" that stuff together ...
2
votes
1answer
968 views
Problem with executing Firefox version 9.0.1
I cannot run firefox version 9.0.1. When i try to execute the binary firefox I get an error -bash: ./firefox: cannot execute binary file. The info returned by file is as follows:
firefox: ELF 32-bit ...
2
votes
1answer
348 views
Set executable heap
The execstack program can be used to mark ELF-binaries as needing an executable stack.
Is there a similar way to mark the heap as executable? Preferably for a single binary but if that's not ...
23
votes
4answers
749 views
Execution of possibly harmful program on Linux
I'm writing a program that will test programs written by students. I'm afraid that I can't trust them and I need to make sure that it won't end up badly for the computer running it.
I was thinking ...
2
votes
1answer
166 views
Can I use the same binary on Linux, *BSD and Illumos?
I want to know, if I can use the binary of a program without modification on the three systems? After all they are all Unices. I talk about the same architecture.
3
votes
2answers
635 views
FIle permission execute only
How can I set file to be executable only to other users but not readable/writable, the reason for this I'm executing something with my username but I don't want to give out the password. I tried :
...
12
votes
1answer
389 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 ...
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 ...
3
votes
1answer
471 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 ...
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?
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 ...
