From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,53411c0b167e5414 X-Google-Attributes: gid111c93,public From: Matt Grossman Subject: Re: GCC compiled program not runable? Date: 1998/09/23 Message-ID: #1/1 X-Deja-AN: 394257969 Sender: mattg@mattg.oz.net References: <6ubc75$tbq$1@nnrp1.dejanews.com> <6ubnt3$r3f$1@wbnws01.ne.highway1.com> Organization: Sense Networking Seattle (http://www.oz.net) Newsgroups: comp.os.linux.alpha joe@js.ne.mediaone.net (Joseph Sarkes) writes: > hfon@my-dejanews.com wrote: > > : Running RedHat 5.1 Linux for Alpha on an Alpha 200-4/233, I have installed > : all necessary tools. When I write even a very simple C program, gcc can > : compile it to an executable file. But when I run that executable program, > : the system tells me that the file is not found. > And he did try ./program, too! > Likely you are missing a shared library somehow. > The program is there, but since the shared libraries are > part of the program, and can't be found, you get the file > not found error. I forget now how I fixed that when I saw > it. You can run ldd on your executable to find out what shared libraries it is trying to link with. You can then set the $LD_LIBRARY_PATH environment variable to tell ld where to look for libraries (ie export LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib"), if this turns out to be your problem. Matt Grossman mattg@oz.net http://www.oz.net/~mattg