comp.lang.ada
 help / color / mirror / Atom feed
* Problems installing/running AdaCore GPS (GPL) in Mandriva 2009
@ 2009-06-24 20:25 Anonymous
  2009-06-25  6:48 ` anon
  0 siblings, 1 reply; 10+ messages in thread
From: Anonymous @ 2009-06-24 20:25 UTC (permalink / raw)


Hello,

I'm new to Ada and I'm having some difficulties with GPS.
I've downloaded the GNAT x86_64 package for linux from AdaCore's webpage.

When I try to install it (as root) the script (doinstall) runs 
apparently ok, with the exception that it complains about "unable to 
execute binary" for one of the tools.

The installation process continues and appears ok. However when I try to 
execute gnatmake or gps or any other tool I get the same error "unable 
to execute binary". I'm using Mandriva 2009 x86 64bits. Have any of you 
guys had this issue?

Are there any good alternatives (when it comes to IDE) to gps (if I 
can't get that to work)? KDevelop does not install correctly either, but 
I might be able to get around that. I know of the eclipse solution, but 
I'm somewhat reluctant to try that (for no good reason at all).

Regards,
Newbie.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Problems installing/running AdaCore GPS (GPL) in Mandriva 2009
  2009-06-24 20:25 Problems installing/running AdaCore GPS (GPL) in Mandriva 2009 Anonymous
@ 2009-06-25  6:48 ` anon
  2009-06-25 15:22   ` Anonymous
  0 siblings, 1 reply; 10+ messages in thread
From: anon @ 2009-06-25  6:48 UTC (permalink / raw)


You need to add the location of the gnat binaries to your PATH variable. This 
should be explained in the README file and the last page of the doinstall 
script.

As for an editor "kate" and use the "terminal" button at bottom of "Kate" to 
execute the GNAT programs using the term console.  "kate" as a nice color 
scheme and font for Ada code.

Term console command line: 
 gnat ???? program_name

where ???? => is either bind, compile, link or make

 Then if link is OK:
  ./program_name

Without GPS, project files are a little involved.

In <4a428bc1@news.broadpark.no>, Anonymous <anon@anon.org> writes:
>Hello,
>
>I'm new to Ada and I'm having some difficulties with GPS.
>I've downloaded the GNAT x86_64 package for linux from AdaCore's webpage.
>
>When I try to install it (as root) the script (doinstall) runs 
>apparently ok, with the exception that it complains about "unable to 
>execute binary" for one of the tools.
>
>The installation process continues and appears ok. However when I try to 
>execute gnatmake or gps or any other tool I get the same error "unable 
>to execute binary". I'm using Mandriva 2009 x86 64bits. Have any of you 
>guys had this issue?
>
>Are there any good alternatives (when it comes to IDE) to gps (if I 
>can't get that to work)? KDevelop does not install correctly either, but 
>I might be able to get around that. I know of the eclipse solution, but 
>I'm somewhat reluctant to try that (for no good reason at all).
>
>Regards,
>Newbie.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Problems installing/running AdaCore GPS (GPL) in Mandriva 2009
  2009-06-25  6:48 ` anon
@ 2009-06-25 15:22   ` Anonymous
  2009-06-25 18:38     ` Ludovic Brenta
  0 siblings, 1 reply; 10+ messages in thread
From: Anonymous @ 2009-06-25 15:22 UTC (permalink / raw)


Hello, and thanks for your reply.

I did add the location of the gnat binaries to my PATH variable as
described in the README file. The problems seems to be the binaries
themselves. A complete sample of the errormessage would be:
bash: ./gnat: cannot execute binary file

or
/usr/local/gnat/bin/gps: line 66: /usr/local/gnat/gps_exe: cannot 
execute binary file
/usr/local/gnat/bin/gps: line 66: /usr/local/gnat/gps_exe: Success

That's the errors when I run gnat or gps respectively.

Thanks for the tip about Kate. I will check it out.

Regards


anon skrev:
> You need to add the location of the gnat binaries to your PATH variable. This 
> should be explained in the README file and the last page of the doinstall 
> script.
> 
> As for an editor "kate" and use the "terminal" button at bottom of "Kate" to 
> execute the GNAT programs using the term console.  "kate" as a nice color 
> scheme and font for Ada code.
> 
> Term console command line: 
>  gnat ???? program_name
> 
> where ???? => is either bind, compile, link or make
> 
>  Then if link is OK:
>   ./program_name
> 
> Without GPS, project files are a little involved.
> 
> In <4a428bc1@news.broadpark.no>, Anonymous <anon@anon.org> writes:
>> Hello,
>>
>> I'm new to Ada and I'm having some difficulties with GPS.
>> I've downloaded the GNAT x86_64 package for linux from AdaCore's webpage.
>>
>> When I try to install it (as root) the script (doinstall) runs 
>> apparently ok, with the exception that it complains about "unable to 
>> execute binary" for one of the tools.
>>
>> The installation process continues and appears ok. However when I try to 
>> execute gnatmake or gps or any other tool I get the same error "unable 
>> to execute binary". I'm using Mandriva 2009 x86 64bits. Have any of you 
>> guys had this issue?
>>
>> Are there any good alternatives (when it comes to IDE) to gps (if I 
>> can't get that to work)? KDevelop does not install correctly either, but 
>> I might be able to get around that. I know of the eclipse solution, but 
>> I'm somewhat reluctant to try that (for no good reason at all).
>>
>> Regards,
>> Newbie.
> 



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Problems installing/running AdaCore GPS (GPL) in Mandriva 2009
  2009-06-25 15:22   ` Anonymous
@ 2009-06-25 18:38     ` Ludovic Brenta
  2009-06-25 19:28       ` sjw
  2009-06-25 20:30       ` Anonymous
  0 siblings, 2 replies; 10+ messages in thread
From: Ludovic Brenta @ 2009-06-25 18:38 UTC (permalink / raw)


Anonymous wrote on comp.lang.ada:
> /usr/local/gnat/bin/gps: line 66: /usr/local/gnat/gps_exe: cannot
> execute binary file
> /usr/local/gnat/bin/gps: line 66: /usr/local/gnat/gps_exe: Success

What is the output of:
$ ls -l usr/local/gnat/bin
$ ldd /usr/local/gnat/gps_exe
$ gnatmake -v

?

--
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Problems installing/running AdaCore GPS (GPL) in Mandriva 2009
  2009-06-25 18:38     ` Ludovic Brenta
@ 2009-06-25 19:28       ` sjw
  2009-06-25 20:30       ` Anonymous
  1 sibling, 0 replies; 10+ messages in thread
From: sjw @ 2009-06-25 19:28 UTC (permalink / raw)


On Jun 25, 7:38 pm, Ludovic Brenta <ludo...@ludovic-brenta.org> wrote:

> What is the output of:
> $ ls -l usr/local/gnat/bin
> $ ldd /usr/local/gnat/gps_exe
> $ gnatmake -v

Also 'file /usr/local/gnat/gps_exe' (actually shouldn't that be /usr/
local/gnat/bin/gps_exe ? Here on Mac OS X I have both the shell script
'gps' and the executable 'gps_exe' at the same place, namely /opt/gnat-
gpl-2009_64/bin.)



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Problems installing/running AdaCore GPS (GPL) in Mandriva 2009
  2009-06-25 18:38     ` Ludovic Brenta
  2009-06-25 19:28       ` sjw
@ 2009-06-25 20:30       ` Anonymous
  2009-06-25 21:19         ` Ludovic Brenta
  1 sibling, 1 reply; 10+ messages in thread
From: Anonymous @ 2009-06-25 20:30 UTC (permalink / raw)


Ludovic Brenta skrev:
  > What is the output of:
> $ ls -l usr/local/gnat/bin
> $ ldd /usr/local/gnat/gps_exe
> $ gnatmake -v
Here's the output you asked for. I hope this will give you some insight
to what the problem might be.

---------------------------------------------------------------------
ls -l usr/local/gnat/bin:

total 84432
-rwxr-xr-x 1 bjoernar bjoernar   711816 2009-05-20 00:17 addr2line*
-rwxr-xr-x 3 bjoernar bjoernar   220040 2009-05-20 01:43 c++*
-rwxr-xr-x 1 bjoernar bjoernar   251728 2009-01-15 07:25 cbrowser*
-rwxr-xr-x 1 bjoernar bjoernar   220040 2009-05-20 01:43 cpp*
-rwxr-xr-x 1 bjoernar bjoernar   277528 2009-01-15 07:25 dbimp*
-rwxr-xr-x 3 bjoernar bjoernar   220040 2009-05-20 01:43 g++*
-rwxr-xr-x 1 bjoernar bjoernar   217000 2009-05-20 01:43 gcc*
-rwxr-xr-x 1 bjoernar bjoernar    16280 2009-05-20 01:43 gccbug*
-rwxr-xr-x 1 bjoernar bjoernar    30952 2009-05-20 01:43 gcov*
-rwxr-xr-x 1 bjoernar bjoernar  3785088 2009-05-20 01:49 gdb*
-rwxr-xr-x 1 bjoernar bjoernar   103497 2009-05-20 01:49 gdbserver*
-rwxr-xr-x 1 bjoernar bjoernar  1499312 2009-05-20 01:43 gnat*
-rwxr-xr-x 1 bjoernar bjoernar   983712 2009-05-20 01:43 gnatbind*
-rwxr-xr-x 1 bjoernar bjoernar  2785152 2009-05-20 01:53 gnatcheck*
-rwxr-xr-x 1 bjoernar bjoernar   619744 2009-05-20 01:43 gnatchop*
-rwxr-xr-x 1 bjoernar bjoernar  1452856 2009-05-20 01:43 gnatclean*
-rwxr-xr-x 1 bjoernar bjoernar  2197344 2009-05-20 01:53 gnatelim*
-rwxr-xr-x 1 bjoernar bjoernar   602832 2009-05-20 01:43 gnatfind*
-rwxr-xr-x 1 bjoernar bjoernar    32382 2008-09-24 12:04 gnathtml.pl*
-rwxr-xr-x 1 bjoernar bjoernar   115440 2009-05-20 01:43 gnatkr*
-rwxr-xr-x 1 bjoernar bjoernar   430544 2009-05-20 01:43 gnatlink*
-rwxr-xr-x 1 bjoernar bjoernar   774352 2009-05-20 01:43 gnatls*
-rwxr-xr-x 1 bjoernar bjoernar  1756088 2009-05-20 01:43 gnatmake*
-rwxr-xr-x 1 bjoernar bjoernar  1132576 2009-05-20 01:49 gnatmem*
-rwxr-xr-x 1 bjoernar bjoernar  2171792 2009-05-20 01:53 gnatmetric*
-rwxr-xr-x 1 bjoernar bjoernar  1111688 2009-05-20 01:43 gnatname*
-rwxr-xr-x 1 bjoernar bjoernar  2225560 2009-05-20 01:53 gnatpp*
-rwxr-xr-x 1 bjoernar bjoernar   985000 2009-05-20 01:43 gnatprep*
-rwxr-xr-x 1 bjoernar bjoernar  2002872 2009-05-20 01:53 gnatstub*
-rwxr-xr-x 1 bjoernar bjoernar   601456 2009-05-20 01:43 gnatxref*
-rwxr-xr-x 1 bjoernar bjoernar  2522568 2009-04-29 10:35 gprbuild*
-rwxr-xr-x 1 bjoernar bjoernar 10007453 2009-04-29 10:29 gprbuild_debug*
-rwxr-xr-x 1 bjoernar bjoernar  2242144 2009-04-29 10:35 gprclean*
-rwxr-xr-x 1 bjoernar bjoernar  8828976 2009-04-29 10:29 gprclean_debug*
-rwxr-xr-x 1 bjoernar bjoernar  1965880 2009-04-29 10:35 gprconfig*
-rwxr-xr-x 1 bjoernar bjoernar  7225735 2009-04-29 10:29 gprconfig_debug*
-rwxr-xr-x 1 bjoernar bjoernar   775896 2009-05-20 00:17 gprof*
-rwxr-xr-x 1 bjoernar bjoernar     1377 2009-01-15 07:25 gps*
-rwxr-xr-x 1 bjoernar bjoernar 21080088 2009-01-15 07:25 gps_exe*
-rw-r--r-- 1 root     root            0 2009-06-25 22:16 ls.txt
-rwxr-xr-x 1 bjoernar bjoernar  1096864 2009-05-20 00:17 objdump*
-rwxr-xr-x 3 bjoernar bjoernar   220040 2009-05-20 01:43 
x86_64-pc-linux-gnu-c++*
-rwxr-xr-x 1 bjoernar bjoernar   220040 2009-05-20 01:43 
x86_64-pc-linux-gnu-g++*
-rwxr-xr-x 2 bjoernar bjoernar   217000 2009-05-20 01:43 
x86_64-pc-linux-gnu-gcc*
-rwxr-xr-x 2 bjoernar bjoernar   217000 2009-05-20 01:43 
x86_64-pc-linux-gnu-gcc-4.3.4*

------------------------------------------------------------------
ldd /usr/local/gnat/bin/gps_exe:

	not a dynamic executable
------------------------------------------------------------------
./gnatmake -v:

bash: ./gnatmake: cannot execute binary file
------------------------------------------------------------------

Thanks for all the help so far guys!

Best regards.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Problems installing/running AdaCore GPS (GPL) in Mandriva 2009
  2009-06-25 20:30       ` Anonymous
@ 2009-06-25 21:19         ` Ludovic Brenta
  2009-06-25 22:39           ` Anonymous
  0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Brenta @ 2009-06-25 21:19 UTC (permalink / raw)


Anonymous wrote on comp.lang.ada:
> ldd /usr/local/gnat/bin/gps_exe: not a dynamic executable

Strange; it should at least use libc6, methinks.

> ./gnatmake -v: bash: ./gnatmake: cannot execute binary file

I have a hunch that maybe you installed a 32-bit version of GNAT GPL
on a 64-bit operating system, or vice versa.  Or maybe the Mac OS X
version on GNU/Linux, or something.  Simon asked for the output of
"file gps_exe" which might provide another hint.

--
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Problems installing/running AdaCore GPS (GPL) in Mandriva 2009
  2009-06-25 21:19         ` Ludovic Brenta
@ 2009-06-25 22:39           ` Anonymous
  2009-06-26 10:00             ` Ludovic Brenta
  0 siblings, 1 reply; 10+ messages in thread
From: Anonymous @ 2009-06-25 22:39 UTC (permalink / raw)


Ludovic Brenta skrev:
> I have a hunch that maybe you installed a 32-bit version of GNAT GPL
> on a 64-bit operating system, or vice versa.  Or maybe the Mac OS X
> version on GNU/Linux, or something.  Simon asked for the output of
> "file gps_exe" which might provide another hint.

Hi again. Here's what Simon requested.
# file /usr/local/gnat/bin/gps_exe
/usr/local/gnat/bin/gps_exe: ELF 64-bit LSB executable, x86-64, version 
1 (SYSV), dynamically linked (uses shared libs), stripped

Whoops!
Ludovic, you were absolutely correct. I messed up.
I am indeed running a 32bit OS. I was dead certain I downloaded the
64bit version of Mandriva. But that was months ago, and I just installed
it the other day.
Man! Do I feel stupid right now ;)

Thank you everyone for your contributions, I suppose my problem is
solved now. I'll just download the RIGHT version of Mandriva this time.

Best regards!
OBTW: It has been a very pleasant experience getting help here.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Problems installing/running AdaCore GPS (GPL) in Mandriva 2009
  2009-06-25 22:39           ` Anonymous
@ 2009-06-26 10:00             ` Ludovic Brenta
  2009-06-26 13:06               ` Anonymous
  0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Brenta @ 2009-06-26 10:00 UTC (permalink / raw)


Anonymous wrote on comp.lang.ada:
> Ludovic, you were absolutely correct. I messed up.
> I am indeed running a 32bit OS. I was dead certain I downloaded the
> 64bit version of Mandriva. But that was months ago, and I just installed
> it the other day.
> Man! Do I feel stupid right now ;)
>
> Thank you everyone for your contributions, I suppose my problem is
> solved now. I'll just download the RIGHT version of Mandriva this time.

The simpler thing would be to download the 32-bit version of GNAT GPL
Edition.  However, if you really want to reinstall your operating
system because you need 64-bit support, I suggest you switch to Debian
because Debian has the best support for Ada.  The reasons are
explained in the Wikibook:

http://en.wikibooks.org/wiki/Ada_Programming/Installing

--
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Problems installing/running AdaCore GPS (GPL) in Mandriva 2009
  2009-06-26 10:00             ` Ludovic Brenta
@ 2009-06-26 13:06               ` Anonymous
  0 siblings, 0 replies; 10+ messages in thread
From: Anonymous @ 2009-06-26 13:06 UTC (permalink / raw)


Ludovic Brenta skrev:
  > The simpler thing would be to download the 32-bit version of GNAT GPL
> Edition.  However, if you really want to reinstall your operating
> system because you need 64-bit support, I suggest you switch to Debian
> because Debian has the best support for Ada.  The reasons are
> explained in the Wikibook:
> 
> http://en.wikibooks.org/wiki/Ada_Programming/Installing

Simpler, yes. But I run Linux in a VirtualBox. And I just installed it
the other day. And it was always my intention to run the 64 bit version.
But your comments about Debian has been noted, I've read the section in
the wikibook and I'm currently downloading that.

Thanks for all the help.

Regards.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-06-26 13:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-24 20:25 Problems installing/running AdaCore GPS (GPL) in Mandriva 2009 Anonymous
2009-06-25  6:48 ` anon
2009-06-25 15:22   ` Anonymous
2009-06-25 18:38     ` Ludovic Brenta
2009-06-25 19:28       ` sjw
2009-06-25 20:30       ` Anonymous
2009-06-25 21:19         ` Ludovic Brenta
2009-06-25 22:39           ` Anonymous
2009-06-26 10:00             ` Ludovic Brenta
2009-06-26 13:06               ` Anonymous

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox