You missed this step:
After you "su" you are "root".
 
Then:
yum install gcc
 
Then do your configure and install.  Should work fine.
 
Michael D. Black
Senior Scientist
Northrop Grumman Mission Systems
 

________________________________

From: sqlite-users-boun...@sqlite.org on behalf of Glen Scratchley
Sent: Thu 6/17/2010 9:21 AM
To: j...@kreibi.ch; General Discussion of SQLite Database
Subject: Re: [sqlite] c compiler during install



Thanks for the reply.

I'm not sure what your "as root? Really?" meant, so I tried to install
as a regular user; no joy.:
[colad...@selkirk sqlite-3.6.23.1]$
PATH=$PATH:/usr/libexec/gcc/i386-redhat-linux/4.1.1/  export PATH
[colad...@selkirk sqlite-3.6.23.1]$ which cc1
/usr/libexec/gcc/i386-redhat-linux/4.1.1/cc1
[colad...@selkirk sqlite-3.6.23.1]$ CC=cc1 ./configure
./configure: line 1673: config.log: Permission denied
./configure: line 1683: config.log: Permission denied


[colad...@selkirk sqlite-3.6.23.1]$ su
Password:
[r...@selkirk sqlite-3.6.23.1]#
PATH=$PATH:/usr/libexec/gcc/i386-redhat-linux/4.1.1/  export PATH
[r...@selkirk sqlite-3.6.23.1]# which cc1
/usr/libexec/gcc/i386-redhat-linux/4.1.1/cc1
[r...@selkirk sqlite-3.6.23.1]# CC=cc1 ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... cc1
checking for C compiler default output file name... conftest.s
checking whether the C compiler works... configure: error: cannot run C
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
[r...@selkirk sqlite-3.6.23.1]#

So I'm concluding that cc1 is not actually a viable c compiler, as
another poster suggested.


Glen Scratchley
DMS Solutions Architect
Macro 4, Inc.

(973) 526-3900  Direct: (973) 526-3832  Fax: (973) 526-3899
A Division of the UNICOM Group of Companies
www.macro4.com

***********************************************************************
This message (including any attachments) contains confidential
information that is PRIVILEGED, CONFIDENTIAL and/or ATTORNEY WORK
PRODUCT and is intended only for the individual(s) named herein. If you
are not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this email is strictly
prohibited. If you have received this message in error, please notify
the UNICOM Systems, Inc. Postmaster (postmas...@unicomsi.com) of the
error immediately, do not read or use the email and any attachments in
any manner, destroy all copies, and delete it from your system if the
communication was sent via email. UNICOM Systems, Inc. (818) 838-0606
Fax: (818) 838-0776
**********************************************************************


-----Original Message-----
From: sqlite-users-boun...@sqlite.org
[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Jay A. Kreibich
Sent: Thursday, June 17, 2010 10:03 AM
To: General Discussion of SQLite Database
Subject: Re: [sqlite] c compiler during install

On Thu, Jun 17, 2010 at 09:48:15AM -0400, Glen Scratchley scratched on
the wall:
> This is my first post; I have some SQL experience, but I am a complete

> newbie with sqlite
> 
> I didn't get any hits with a search of the faq, so if this has been
> answered, I apologize; please point me to it.
> 
> I am trying to install on RHS 5.  When I run .configure I get this:
> 
> [r...@selkirk sqlite-3.6.23.1]# ./configure

  As root?  Really?

> checking for a BSD-compatible install... /usr/bin/install -c checking
> whether build environment is sane... yes checking for gawk... gawk
> checking whether make sets $(MAKE)... yes checking for style of
> include used by make... GNU checking for gcc... no checking for cc...
> no checking for cl.exe... no
> configure: error: no acceptable C compiler found in $PATH See
> `config.log' for more details.


> I am not a programmer, but I assume that this a c compiler:
> 
> [r...@selkirk sqlite-3.6.23.1]# which cc1
> /usr/libexec/gcc/i386-redhat-linux/4.1.1/cc1

  Assuming that is your C compiler, try this:

# CC=cc1 ./configure


    -j

--
Jay A. Kreibich < J A Y  @  K R E I B I.C H >

"Intelligence is like underwear: it is important that you have it,
 but showing it to the wrong people has the tendency to make them
 feel uncomfortable." -- Angela Johnson
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

-
------------------------------------------------------------------------
This email has been scanned for all known viruses by the MessageLabs
Email
Security Service and the Macro 4 internal virus protection system.
.
------------------------------------------------------------------------

- ------------------------------------------------------------------------
This email has been scanned for all known viruses by the MessageLabs Email
Security Service and the Macro 4 internal virus protection system.
. ------------------------------------------------------------------------
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to