New topic: 

New to Linux: Compiling and executing

<http://forums.realsoftware.com/viewtopic.php?t=31416>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       pixe656           Post subject: New to Linux: Compiling and 
executingPosted: Fri Dec 04, 2009 7:01 am                        
Joined: Wed May 20, 2009 11:02 am
Posts: 17              Hi, 

I am completely new to Linux but since RB has the ability to compile the code 
for Linux, I was thinking of compiling my application for Linux (and later 
MacOS) as well. 

Thus, I made a simple "Hello World" type of application (just a pushbutton with 
a msgbox) and compiled it for Linux: Instead of compiling for the default 
system (Windows) I went into the compile configuration, chose Linux and 
launched the compilation, after which I got a file without any extension. 

Then I transferred the file to my Ubuntu 9.04 installation (on a Sun VirtualBox 
virtual machine) and tried to execute it in different ways: By double clicking 
it from the GUI (I am a Windows user...), from the command prompt using the 
name of myapplication (./MyApplication) and also using "sh MyApplication". I 
did the command prompt attempts as root (after doing sudo -i) and also as my 
normal user. None of these attempts worked, so I couldn't run the test 
application.

When I try to run the application from the terminal I get the following error 
message: "-bash: ./MyApplication: Permission denied" (actually the message is 
in spanish, so this is my translation into english). I am working as root 
atthis time.
When I try sh from the terminal I get a combination of text and symbols, as can 
be seen in the following picture (where you can also see the result of doing 
./MyApplication). The actual name of "MyApplication" is "HelloLinux".
http://img252.imageshack.us/img252/7620/pantallazoby.png

Am I doing something wrong at the compilation step, or is my problem related to 
how to execute in Linux? 

Thank you in advance, 

Pixe.   
                            Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to