[pcre-dev] hi, author of pcre, could you help me about your …

Top Page
Delete this message
Author: Yu Liang
Date:  
To: pcre-dev
Subject: [pcre-dev] hi, author of pcre, could you help me about your pcre?
hi,

I use Mac OSX 10.6, and I want to install your pcre package in order to use
procfs in Mac. The instruction link is
http://osxbook.com/book/bonus/chapter11/procfs/

I downloaded it, then use the command as following:

''CFLAGS="-O -g -arch i386 -arch ppc -isysroot
/Developer/SDKs/MacOSX10.6u.sdk" CXXFLAGS="-O -g -arch i386 -arch ppc
-isysroot /Developer/SDKs/MacOSX10.6u.sdk" LDFLAGS="-arch i386 -arch ppc"
./configure --prefix=/usr/local --disable-dependency-tracking
"

but it generated error like below:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables

--

why c complier cannot create executables?

I look into the config.log file, and found this information:
----
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/0d/0dxLFPV+GZaGryYF3RAQc++++TI/-Tmp-//ccrCUbUt.out (No such
file or directory)
configure:2879: $? = 1
configure:2917: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "PCRE"
| #define PACKAGE_TARNAME "pcre"
| #define PACKAGE_VERSION "7.8"
| #define PACKAGE_STRING "PCRE 7.8"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "pcre"
| #define VERSION "7.8"
| /* end confdefs.h. */

|
| int
| main ()
| {

|
| ;
| return 0;
| }

configure:2924: error: C compiler cannot create executables
See `config.log' for more details.

--

what happens, can you give me some suggestion?


--
Regards
Mr. Liang Yu

College of Computer and Information Science,
Northeastern University, Boston, MA 02115, USA

Cell-phone:718-501-0145
Email: yuliang.name@???