I'm trying to install R-2.0.1 on Solaris 9 and I'm receiving the
following error messages during make.
begin installing recommended package foreign
make[2]: *** [foreign.ts] Error 1
make[2]: Leaving directory
`/opt/net/source/R-2.0.1/src/library/Recommended'
make[1]: *** [recommended-packages] Error 2
make[1]: Leaving directory
`/opt/net/source/R-2.0.1/src/library/Recommended'
make: *** [stamp-recommended] Error 2
A review of src/library/Recommended/foreign.ts.out shows:
* Installing *source* package 'foreign' ...
configure: loading cache /dev/null
checking for gcc... make[3]: Entering directory
`/tmp/R.INSTALL.169/foreign'
gcc -m64
make[3]: Leaving directory `/tmp/R.INSTALL.169/foreign'
checking for C compiler default output file name... configure:
error: C compiler cannot create executables
See `config.log' for more details.
ERROR: configuration failed for package 'foreign'
A review of config.log does not reveal anything terribly useful.
I'm using gcc, g77, and g++ v3.4.1, 32 bit builds (I think), all
installed under /opt/net/utils/gcc3.4.1, which is in the path.
LD_LIBRARY_PATH=/otherstuff:/opt/net/utils/gcc3.4.1/lib:/opt/net/utils/l
ib:/otherstuff
My config.site contains:
CC="gcc"
CPPFLAGS="-I/usr/include"
F77="g77"
LDFLAGS="-L/opt/net/utils/gcc3.4.1/lib/"
CXX="g++"
What should I be looking for here?
Thanks.
Rusty
[[alternative HTML version deleted]]
Did I post this to the right mail list? Is there another list that is
more appropriate for this type of question?
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Shields, Rusty
(IMS)
Sent: Monday, April 18, 2005 12:09 PM
To: r-help at stat.math.ethz.ch
Subject: [R] Install problem on Solaris 9
I'm trying to install R-2.0.1 on Solaris 9 and I'm receiving the
following error messages during make.
begin installing recommended package foreign
make[2]: *** [foreign.ts] Error 1
make[2]: Leaving directory
`/opt/net/source/R-2.0.1/src/library/Recommended'
make[1]: *** [recommended-packages] Error 2
make[1]: Leaving directory
`/opt/net/source/R-2.0.1/src/library/Recommended'
make: *** [stamp-recommended] Error 2
A review of src/library/Recommended/foreign.ts.out shows:
* Installing *source* package 'foreign' ...
configure: loading cache /dev/null
checking for gcc... make[3]: Entering directory
`/tmp/R.INSTALL.169/foreign'
gcc -m64
make[3]: Leaving directory `/tmp/R.INSTALL.169/foreign'
checking for C compiler default output file name... configure:
error: C compiler cannot create executables
See `config.log' for more details.
ERROR: configuration failed for package 'foreign'
A review of config.log does not reveal anything terribly useful.
I'm using gcc, g77, and g++ v3.4.1, 32 bit builds (I think), all
installed under /opt/net/utils/gcc3.4.1, which is in the path.
LD_LIBRARY_PATH=/otherstuff:/opt/net/utils/gcc3.4.1/lib:/opt/net/utils/l
ib:/otherstuff
My config.site contains:
CC="gcc"
CPPFLAGS="-I/usr/include"
F77="g77"
LDFLAGS="-L/opt/net/utils/gcc3.4.1/lib/"
CXX="g++"
What should I be looking for here?
Thanks.
Rusty
[[alternative HTML version deleted]]
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
Sorry. I posted the contents of foreign.ts.out from an attempted
"make"
that included the -m64 options for the gcc, etc.
I'm running
./configure --prefix=/opt/net/r
My config.site contains:
CC="gcc"
CPPFLAGS="-I/usr/include"
F77="g77"
LDFLAGS="-L/opt/net/utils/gcc3.4.1/lib/"
CXX="g++"
Everything worked fine up until it got to the "foreign" package.
>From config.log, these messages appear. Are they related?
configure:4488: gcc -c -g -O2 -I/usr/include conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:4494: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
and >>>>>>>>>>>>>>
configure:5894: g++ -c -g -O2 -I/usr/include conftest.cc >&5
conftest.cc: In function `int main()':
conftest.cc:20: error: `exit' undeclared (first use this
function)
conftest.cc:20: error: (Each undeclared identifier is reported
only once for each function it appears in.)
configure:5900: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "R"
| #define PACKAGE_TARNAME "R"
| #define PACKAGE_VERSION "2.0.1"
| #define PACKAGE_STRING "R 2.0.1"
| #define PACKAGE_BUGREPORT "r-bugs at R-project.org"
| #define PACKAGE "R"
| #define VERSION "2.0.1"
| #define R_PLATFORM "sparc-sun-solaris2.9"
| #define R_CPU "sparc"
| #define R_VENDOR "sun"
| #define R_OS "solaris2.9"
| #define Unix 1
| /* end confdefs.h. */
|
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
and >>>>>>>>>
configure:21326: gcc -o conftest -g -O2 -I/usr/include
-L/opt/net/utils/gcc3.4.1/lib/ conftest.c -lncurses -lm >&5
ld: fatal: library -lncurses: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:21332: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "R"
| #define PACKAGE_TARNAME "R"
| #define PACKAGE_VERSION "2.0.1"
| #define PACKAGE_STRING "R 2.0.1"
| #define PACKAGE_BUGREPORT "r-bugs at R-project.org"
| #define PACKAGE "R"
| #define VERSION "2.0.1"
| #define R_PLATFORM "sparc-sun-solaris2.9"
| #define R_CPU "sparc"
| #define R_VENDOR "sun"
| #define R_OS "solaris2.9"
| #define Unix 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_LIBM 1
| /* end confdefs.h. */
|
|
| int
| main ()
| {
| main ();
| ;
| return 0;
| }
>>>>>>>>>>>
There are more but I'll stop here for now. I assumed that this were no
big deal since I got the message
R is now configured for sparc-sun-solaris2.9
when configure finished running.
Thanks.
Rusty
-----Original Message-----
From: Uwe Ligges [mailto:ligges at statistik.uni-dortmund.de]
Sent: Tuesday, April 19, 2005 7:37 AM
To: Shields, Rusty (IMS)
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] Install problem on Solaris 9
Shields, Rusty (IMS) wrote:
> Did I post this to the right mail list? Is there another list that is
> more appropriate for this type of question?
>
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Shields, Rusty
> (IMS)
> Sent: Monday, April 18, 2005 12:09 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Install problem on Solaris 9
>
>
> I'm trying to install R-2.0.1 on Solaris 9 and I'm receiving the
> following error messages during make.
>
> begin installing recommended package foreign
> make[2]: *** [foreign.ts] Error 1
> make[2]: Leaving directory
> `/opt/net/source/R-2.0.1/src/library/Recommended'
> make[1]: *** [recommended-packages] Error 2
> make[1]: Leaving directory
> `/opt/net/source/R-2.0.1/src/library/Recommended'
> make: *** [stamp-recommended] Error 2
>
>
> A review of src/library/Recommended/foreign.ts.out shows:
>
> * Installing *source* package 'foreign' ...
> configure: loading cache /dev/null
> checking for gcc... make[3]: Entering directory
> `/tmp/R.INSTALL.169/foreign'
> gcc -m64
> make[3]: Leaving directory `/tmp/R.INSTALL.169/foreign'
> checking for C compiler default output file name... configure:
> error: C compiler cannot create executables
> See `config.log' for more details.
> ERROR: configuration failed for package 'foreign'
>
>
> A review of config.log does not reveal anything terribly useful.
>
> I'm using gcc, g77, and g++ v3.4.1, 32 bit builds (I think), all
32bit builds?
A few lines above the line "gcc -m64" suggests to check again and
compile also with 32-bit.
Did everything before foreign work smoothly?
Which configure options have you specified?
Any errors or warnings from configure?
Uwe Ligges
> installed under /opt/net/utils/gcc3.4.1, which is in the path.
>
>
LD_LIBRARY_PATH=/otherstuff:/opt/net/utils/gcc3.4.1/lib:/opt/net/utils/l> ib:/otherstuff
>
> My config.site contains:
>
> CC="gcc"
> CPPFLAGS="-I/usr/include"
> F77="g77"
> LDFLAGS="-L/opt/net/utils/gcc3.4.1/lib/"
> CXX="g++"
>
>
> What should I be looking for here?
>
> Thanks.
>
> Rusty
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
You need to see the config.log for foreign. To do so, please 1) unpack src/library/Recommended/foreign.tgz in say /tmp 2) Run /path/to/R_HOME/bin/R CMD INSTALL /tmp/foreign 3) Look in /tmp/foreign/config.log HOWEVER, you still seem to have -m64 in foreign.ts.out: R is not going to have put that there, so it is something you did or something wrong in the configuration of your machine. I also do not get> configure: loading cache /dev/nullwhich I have never seen. Here's what my config.log has (gcc 3.4.3, Solaris 8) ## ----------- ## ## Core tests. ## ## ----------- ## configure:1346: checking for gcc configure:1372: result: gcc configure:1616: checking for C compiler version configure:1619: gcc --version </dev/null >&5 gcc (GCC) 3.4.3 Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:1622: $? = 0 configure:1624: gcc -v </dev/null >&5 Reading specs from /opt/local/sol2.6/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.3/specs Configured with: ./configure Thread model: posix gcc version 3.4.3 configure:1627: $? = 0 configure:1629: gcc -V </dev/null >&5 gcc: `-V' option must have argument configure:1632: $? = 1 configure:1655: checking for C compiler default output file name configure:1658: gcc -O2 -g -Wall -pedantic conftest.c >&5 configure:1658: gcc -O2 -g -Wall -pedantic conftest.c >&5 configure:1661: $? = 0 configure:1707: result: a.out On Mon, 18 Apr 2005, Shields, Rusty (IMS) wrote:> I'm trying to install R-2.0.1 on Solaris 9 and I'm receiving the > following error messages during make. > > begin installing recommended package foreign > make[2]: *** [foreign.ts] Error 1 > make[2]: Leaving directory > `/opt/net/source/R-2.0.1/src/library/Recommended' > make[1]: *** [recommended-packages] Error 2 > make[1]: Leaving directory > `/opt/net/source/R-2.0.1/src/library/Recommended' > make: *** [stamp-recommended] Error 2 > > > A review of src/library/Recommended/foreign.ts.out shows: > > * Installing *source* package 'foreign' ... > configure: loading cache /dev/null > checking for gcc... make[3]: Entering directory > `/tmp/R.INSTALL.169/foreign' > gcc -m64 > make[3]: Leaving directory `/tmp/R.INSTALL.169/foreign' > checking for C compiler default output file name... configure: > error: C compiler cannot create executables > See `config.log' for more details. > ERROR: configuration failed for package 'foreign' > > > A review of config.log does not reveal anything terribly useful. > > I'm using gcc, g77, and g++ v3.4.1, 32 bit builds (I think), all > installed under /opt/net/utils/gcc3.4.1, which is in the path. > > LD_LIBRARY_PATH=/otherstuff:/opt/net/utils/gcc3.4.1/lib:/opt/net/utils/l > ib:/otherstuff > > My config.site contains: > > CC="gcc" > CPPFLAGS="-I/usr/include" > F77="g77" > LDFLAGS="-L/opt/net/utils/gcc3.4.1/lib/" > CXX="g++"You never need CPPFLAGS="-I/usr/include" unless your compiler is broken, and apart from LDFLAGS R would have figured that all out for itself.> What should I be looking for here? > > Thanks. > > Rusty > > [[alternative HTML version deleted]]> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.htmlPLEASE do, not HTML mail as it asks. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595