WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: no as  (Read 1975 times)

Offline jjacobs

  • Newbie
  • *
  • Posts: 34
no as
« on: May 11, 2010, 07:24:14 PM »
Someone,

I installed gcc and gdb but when I compile a simple hello world program I get the message:

error trying to exec as: execvp

As far as I can tell this means the assembler is not present.  I do not see as in /usr/local/bin, but I do see gcc there.

Any and all help always greatly appreciated.

The code looks like this:
#include <stdio.h>
int main(void)
{
   printf("Hey how r ya");
   return(0);
}


Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: no as
« Reply #1 on: May 11, 2010, 08:07:35 PM »
AFAIK 'as' is included in the 'binutils.tcz' extension.

It might be a good idea to use the 'compiletc.tcz' meta-extension instead of the individual ones. That gives you a recommended set of tools e.g. to produce your own extensions. The downside might be that more extensions than you absolutely need are installed.

Offline jjacobs

  • Newbie
  • *
  • Posts: 34
Re: no as
« Reply #2 on: May 12, 2010, 12:39:36 PM »
Yahoo!  After installing binutils I was able to compile and run my first tc program.

Thanks!!

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: no as
« Reply #3 on: May 12, 2010, 12:44:09 PM »
Before compiling programs it is a good practice to install compiletc.tcz which will install most of the applications required to compile C/C++ source.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jjacobs

  • Newbie
  • *
  • Posts: 34
Re: no as
« Reply #4 on: May 12, 2010, 01:47:13 PM »
Installed compiletc.tcz as well thanks again bmarkus!!