Sitemap

Amicuk Programming Answers

[solved]cannot execute binary files

-0001-11-30   Views:0

Advertisement

For example, what I'm trying to do: [[email protected] tmp0]$ ls test.cpp [[email protected] tmp0]$ cat ./test.cpp #include <fstream> int main() { printf("here am I"); [[email protected] tmp0]$ g++ ./test.cpp [[email protected] tmp0]$ ./a.out bash: ./

For example, what I'm trying to do:
[[email protected] tmp0]$ ls
test.cpp
[[email protected] tmp0]$ cat ./test.cpp
#include <fstream>
int main() {
printf("here am I");
[[email protected] tmp0]$ g++ ./test.cpp
[[email protected] tmp0]$ ./a.out
bash: ./a.out: Permission denied
[[email protected] tmp0]$ chmod +x ./a.out
[[email protected] tmp0]$ ./a.out
bash: ./a.out: Permission denied
[[email protected] tmp0]$ file ./a.out
./a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
[[email protected] tmp0]$ ldd ./a.out
ldd: warning: you do not have execution permission for `./a.out'
not a dynamic executable
[[email protected] tmp0]$ uname -a
Linux arch 2.6.34-bfs #1 SMP PREEMPT Fri May 21 08:18:49 ALMT 2010 i686 AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 AuthenticAMD GNU/Linux
[[email protected] tmp0]$
The same thing when I try to run it from root. Any suggestions?
Last edited by veen (2010-05-23 23:44:17)

The replay answer
Advertisement
unplugged23 wrote:Most desktop enviornments and window managers should allow you to right click on the file, hit properties, and check a little box titled something like 'is executable'
A have already did that:
chmod +x ./a.out
Really, it's strange. Have anyone had similar problem?
upd: the problem actually was in mount options for my home partition.
Last edited by veen (2010-05-23 23:45:35)

Go to See the other 5 answers

[SOLVED] cannot execute binary file / humble bundle

Category:DefaultRelease time:-0001-11-30Views:130

I'm having trouble executing a number of games I've downloaded via Humble Bundle. One game, for example, I downloaded as "supermeatboy-linux-06072012-bin". Here are some of the outputs I get while attempting to execute: $ bash supermeatboy-linux[More]

[solved]cannot execute binary files

Category:DefaultRelease time:-0001-11-30Views:130

For example, what I'm trying to do: [[email protected] tmp0]$ ls test.cpp [[email protected] tmp0]$ cat ./test.cpp #include <fstream> int main() { printf("here am I"); [[email protected] tmp0]$ g++ ./test.cpp [[email protected] tmp0]$ ./a.out bash: ./[More]

64 bit RHEL 4 - runInstaller: cannot execute binary file

Category:DefaultRelease time:2015-10-11Views:130

I have downloaded Forns and Reports services install of application server for itanium linux. When trying to run the installer, I get: /opt/oracle/depot/Disk1/runInstaller: line 135: /opt/oracle/depot/Disk1/install/runInstaller: cannot execute binary[More]

Error: can not execute binary files SAP on Linux

Category:DefaultRelease time:-0001-11-30Views:130

Dear Gurus. I have installed SAP test drive netweaver 2004 on my Linux. when ever i am trying to get the hardware key by the command Saplicense - get, I am getting the error message that " can not execute binary file." pls do let me know how to[More]

/usr/bin/ld: CANNOT EXECUTE binary file!

Category:DefaultRelease time:-0001-11-30Views:130

So whenever I try to compile something, I get to the step checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. And looking at the log, my[More]

I cannot open AirPortDevices Unix Executable file it says  cannot execute binary file

Category:DefaultRelease time:-0001-11-30Views:130

i cannot open AirPortDevices Unix Executable file. when i try it says cannot execute binary fileIf you are wiling to share one of these files via Dropbox, I have a few old Macs floating around that I can use to figure out what files these are, if the[More]

Unable to execute a binary file

Category:DefaultRelease time:-0001-11-30Views:130

I'm trying to run a server following the official instructions (http://www.ventrilo.com/setup.php#Server_Installing), but when I try to execute the binary i get this: [[email protected] ventsrv]$ ./ventrilo_srv bash: ./ventrilo_srv: No such file or directory [[More]

Command not found on running binary files.

Category:DefaultRelease time:2015-10-11Views:130

I have a very strange problem with my new arch installation, which I never faced on other linux installations/distros. I'm trying to execute binary files from android-sdk, which I have them from other distros and always worked, and I get always "comm[More]

CVM binary file

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, I'm trying to execute cvm, which I got from CDC build environment system. When I tryi to execute it on my linux platform, "-bash: /usr/bin/cvm: cannot execute binary file" error message comes out of command line. Do you know what went wr[More]

Read binary files that are wraped in the downloaded executable signed jar

Category:DefaultRelease time:2015-10-11Views:130

Hello, there: I have created a Swing application and created a signed jar file and uploaded it to my site. The signed jar includes class packages, and a folder of binary files which are the datasource for my application. jws downloads this signed exe[More]

Failed to execute default file manager (Input /Output Error) [SOLVED]

Category:DefaultRelease time:-0001-11-30Views:130

I'm having an issue in XFCE where the default Terminal, Browser and File Manager launch correctly - but with this error: Failed to execute default [file manager] [terminal emulator] [browser] Input /Output Error I have the requisite  "Preferred Appli[More]

Hot
Hi, I was trying to follow this guide http://www.oracle.com/technology/oramag/webcolumns/2003/techarticles/balusamy.html in order to develop this web service on Jdev 10.1.3.0.4. But the menus are different from the version used on the tutorial. I´m h [More]
Hi, In Std SAP, we can default cost center based on GSBER or WERKS or PRCTR My req is such that I want a default a cost center based on GSBER and PRCTR i.e. combination of option 2 and 3 in the field "Account account assignment mandatory" Has an [More]
My brother's Mac has died and he was forced to buy a PC for the short term. He is working in Europe for 2 years and there is not a lot of support for Mac over there. He has installed iTunes onto the PC and want to connect their iPods to recharge. The [More]
I have the newest version of iTunes and none of that works!!! I don't know where the Advanced Menu is. And I don't think you can select a song anymore. I need to make WAV Files to put them on Windows Media Player so i can download music on my Samsung [More]
Hi to all My client has a third party payment that paid out to employees twice and I dont understand why. Can someone assist. I have checked element link input values for costed / not costed checks on "amount" and "Input value" - only [More]
Hi All, I have two iPhoto libraries (one in the default package and one in a new package), and one of them shows my file extensions and the other does not. In my default library, all of my pictures are in the library because iPhoto sucked them off my [More]
Hi, I've created a custom JAAS implementation (Configuration & LoginModule classes) for use in a web-environment (Tomcat + Expresso). Question: at the moment, my set-up will only work with Tomcat and a very simple non-Expresso web-app, if and only if [More]
I am thinking to upgrade my MacBook Pro (Winter & Fall 2011) from 4GB to 8GB. Wondering that is this RAM is the right RAM for my MacBook Pro. http://store.apple.com/my/product/MD633G/A And if it is so, how should I replace it? And if I did myself, wi [More]
Hello, I have two queries I'm running that are returning puzzling results. One query is a subset of the other. The queries use a NEAR operator and an equivalence operator. Query 1: NEAR((sister,father,mother=yo mama=mi madre),20) This is returning 3 [More]
Hi, I have just designed a website for a client. We agreed that she would be able to take all the files once completed so she could edit in her own Dreamweaver CS3. I personally - for my sins - am still using a very old version of Dreamweaver. I do t [More]