*BSD News Article 95940


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news.mathworks.com!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: New Installation
Date: 22 May 1997 10:52:04 GMT
Organization: Awfulhak Ltd.
Lines: 62
Message-ID: <5m18gk$aq7@ui-gate.utell.co.uk>
References: <EAI42z.L80@nonexistent.com> <5lv322$ae8@ui-gate.utell.co.uk>
    <33838754.41C67EA6@nyct.net>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41414

In article <33838754.41C67EA6@nyct.net>,
	CHANG ANDRE W <wkchang@nyct.net> writes:
> Brian Somers wrote:
>> 
>> In article <EAI42z.L80@nonexistent.com>,
>>         Andre Chang <wkchang@nyct.net> writes:
>> > Hi,
>> > I recieved my copy of FreeBSD 2.2.1 a few weeks ago and I just got a
>> > chance to install it in my seperate FreeBSD only machine. I did a fresh
>> > installation rather than upgrade from 2.1.7 The machine runs AMD486/p75
>> > with WD1.6G Hdd.
>> > My problem is that when I try to run c++ programs after compilation the
>> > a.out file does not work. In the a.out file I found the comments:
>> >
>> > /usr/libexec/ld.so^@Couldn't open ^@.
>> > ^@Failure reading ld.so
>> > ^@Bad magic: ld.so
>> > ^@Cannot map ld.so (text)
>> > ^@Cannot map ld.so (data)
>> > ^@Cannot map ld.so (bss)
>> > ^@ld.so failed^@: ^@
>> 
>> You'll find them in every binary (unless it's statically linked).
>> 
>> > I'm not familar with configuring the ld.so file with ldconfig. this
>> > being a new installation I do not know if there should be a problem and
>> > where it might be. And help would be greatly appreciated.
>> 
>> You don't need to configure it unless you create new shared libraries
>> youself.
>> 
>> You havn't said what goes wrong with your a.out.  What do you mean
>> by "the a.out file does not work" ?
>> 
>> --
>> Brian <brian@awfulhak.org> <brian@freebsd.org>
>>       <http://www.awfulhak.org>
>> Don't _EVER_ lose your sense of humour !
> 
> Thanks for replying. The problrm that seems to be happening is that I
> compile fine and the a.out file is made but when I type a.out I get the
> message:
> a.out: not found.

It's a PATH problem.  Type

$ ./a.out

or put the current directory in your path (unsafe):

$ PATH=.:$PATH

Unlike DOS, the current directory isn't part of your path unless
it's specifically put in there.

> 					Andre.
> 				chan6169<wkchang@nyct.net>

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !