Unable to configure R 2.2.1 on Solaris 5.10 x86_64

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to configure R 2.2.1 on Solaris 5.10 x86_64

aorchid
Hello,

Apologies for the post here. I have read the R-Admin (learned
a lot!) and searched the web for days, but still fail at compiling R on
my Ultra 20 running solaris 10 x86 1/06.

This is the tail of './configure' output:
.....
checking for dlopen in -ldl... yes
checking readline/history.h usability... no
checking readline/history.h presence... no
checking for readline/history.h... no
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking for rl_callback_read_char in -lreadline... no
checking for main in -lncurses... no
checking for main in -ltermcap... yes
checking for rl_callback_read_char in -lreadline... no
checking for history_truncate_file... no
configure: error: --with-readline=yes (default) and headers/libs are
not available

My R-2.2.1/config.site has the following changes from default:

CC="cc -xtarget=opteron -xarch=amd64"
CFLAGS="-xO5 -xlibmil -dalign"
CPPFLAGS=-I/opt/sfw/include -I/opt/sfw/include/readline \
-I/opt/csw/include -I/opt/SUNWspro/include -I/opt/csw/include/readline
F77="f95 -xarch=amd64 -xtarget=opteron"
FFLAGS="-xO5 -xlibmil -dalign"
LDFLAGS=-L/opt/SUNWspro/lib/amd64/ -L/opt/sfw/lib -L/opt/csw/lib
CXX="CC -xarch=amd64 -xtarget=opteron"
CXXFLAGS="-xO5 -xlibmil -dalign"
R_BROWSER=mozilla
MAKE=gmake

My .zshrc file has the following (as I saw that some of the LDFLAGS
should match my LD_LIBRARY_PATH and CONFIG_SHELL=/bin/ksh):

LD_LIBRARY_PATH=/opt/sfw/include:/opt/sfw/include/readline:/usr/local/lib:/usr/X/lib:/usr/lib:/usr/ucblib:/lib:/usr/ccs/lib:/etc/lib:/usr/dt/lib:/opt/SUNWspro/lib/amd64/:/opt/sfw/lib:/opt/csw/lib

Readline (version 4.2 from the Sun Companion CD) is located
in /opt/sfw/include/readline. Both the readline.h and history.h files
are there. Version 5.0 is located in /opt/csw/include/readline (from
Blastwave). As you can see, I am new at compiling in general and
Solaris specifically. Any help would be greatly appreciated.

System information:

System = SunOS
Release = 5.10
KernelID = Generic_118844-26
Machine = i86pc
OEM# = 0
Origin# = 1
NumCPU = 1

thanks,

aric

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: Unable to configure R 2.2.1 on Solaris 5.10 x86_64

Prof Brian Ripley
Have we not seen such posts before from you?  Perhaps you need to seek or
employ a local Solaris guru (if they exist at `mac.com', or whatever your
real but unstated affiliation is).

The information about what is going wrong is in the file config.log, so
please study it.

But as it is not finding your readline headers, they appear not to be
where you are saying to look. You certainly should not be having
/foo/include/readline in your cpp path, just /foo/include since the
headers looked for are of the form <readline/history.h>.

On Mon, 20 Feb 2006, Aric Gregson wrote:

> Hello,
>
> Apologies for the post here. I have read the R-Admin (learned
> a lot!) and searched the web for days, but still fail at compiling R on
> my Ultra 20 running solaris 10 x86 1/06.
>
> This is the tail of './configure' output:
> .....
> checking for dlopen in -ldl... yes
> checking readline/history.h usability... no
> checking readline/history.h presence... no
> checking for readline/history.h... no
> checking readline/readline.h usability... no
> checking readline/readline.h presence... no
> checking for readline/readline.h... no
> checking for rl_callback_read_char in -lreadline... no
> checking for main in -lncurses... no
> checking for main in -ltermcap... yes
> checking for rl_callback_read_char in -lreadline... no
> checking for history_truncate_file... no
> configure: error: --with-readline=yes (default) and headers/libs are
> not available
>
> My R-2.2.1/config.site has the following changes from default:
>
> CC="cc -xtarget=opteron -xarch=amd64"
> CFLAGS="-xO5 -xlibmil -dalign"
> CPPFLAGS=-I/opt/sfw/include -I/opt/sfw/include/readline \
> -I/opt/csw/include -I/opt/SUNWspro/include -I/opt/csw/include/readline
> F77="f95 -xarch=amd64 -xtarget=opteron"
> FFLAGS="-xO5 -xlibmil -dalign"
> LDFLAGS=-L/opt/SUNWspro/lib/amd64/ -L/opt/sfw/lib -L/opt/csw/lib
> CXX="CC -xarch=amd64 -xtarget=opteron"
> CXXFLAGS="-xO5 -xlibmil -dalign"
> R_BROWSER=mozilla
> MAKE=gmake
>
> My .zshrc file has the following (as I saw that some of the LDFLAGS
> should match my LD_LIBRARY_PATH and CONFIG_SHELL=/bin/ksh):
>
> LD_LIBRARY_PATH=/opt/sfw/include:/opt/sfw/include/readline:/usr/local/lib:/usr/X/lib:/usr/lib:/usr/ucblib:/lib:/usr/ccs/lib:/etc/lib:/usr/dt/lib:/opt/SUNWspro/lib/amd64/:/opt/sfw/lib:/opt/csw/lib

You do not want include paths in the library path.

>
> Readline (version 4.2 from the Sun Companion CD) is located
> in /opt/sfw/include/readline. Both the readline.h and history.h files
> are there. Version 5.0 is located in /opt/csw/include/readline (from
> Blastwave). As you can see, I am new at compiling in general and
> Solaris specifically. Any help would be greatly appreciated.
>
> System information:
>
> System = SunOS
> Release = 5.10
> KernelID = Generic_118844-26
> Machine = i86pc
> OEM# = 0
> Origin# = 1
> NumCPU = 1
>
> thanks,
>
> aric


--
Brian D. Ripley,                  [hidden email]
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: Unable to configure R 2.2.1 on Solaris 5.10 x86_64

Phineas Campbell
In reply to this post by aorchid
Which compiler are you using?

I successfully built R for Solaris on SPARC using GCC, but it took a while
to get it working the first time.

The first step would be to see if you can build simple "Hello World" apps
for C, C++ and Fortran in the directory in which you are going to install R.

If you are unable to do this I would suggest that you build GCC from
sources, and rather than use the Sun Software companion disk download the
most recent versions of the various libraries and utilities from
www.sunfreeware.com.

HTH

Phineas Campbell
Birkbeck College
University of London





-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of Aric Gregson
Sent: Monday, February 20, 2006 11:22 PM
To: [hidden email]
Subject: [R] Unable to configure R 2.2.1 on Solaris 5.10 x86_64


Hello,

Apologies for the post here. I have read the R-Admin (learned
a lot!) and searched the web for days, but still fail at compiling R on
my Ultra 20 running solaris 10 x86 1/06.

This is the tail of './configure' output:
.....
checking for dlopen in -ldl... yes
checking readline/history.h usability... no
checking readline/history.h presence... no
checking for readline/history.h... no
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking for rl_callback_read_char in -lreadline... no
checking for main in -lncurses... no
checking for main in -ltermcap... yes
checking for rl_callback_read_char in -lreadline... no
checking for history_truncate_file... no
configure: error: --with-readline=yes (default) and headers/libs are
not available

My R-2.2.1/config.site has the following changes from default:

CC="cc -xtarget=opteron -xarch=amd64"
CFLAGS="-xO5 -xlibmil -dalign"
CPPFLAGS=-I/opt/sfw/include -I/opt/sfw/include/readline \
-I/opt/csw/include -I/opt/SUNWspro/include -I/opt/csw/include/readline
F77="f95 -xarch=amd64 -xtarget=opteron"
FFLAGS="-xO5 -xlibmil -dalign"
LDFLAGS=-L/opt/SUNWspro/lib/amd64/ -L/opt/sfw/lib -L/opt/csw/lib
CXX="CC -xarch=amd64 -xtarget=opteron"
CXXFLAGS="-xO5 -xlibmil -dalign"
R_BROWSER=mozilla
MAKE=gmake

My .zshrc file has the following (as I saw that some of the LDFLAGS
should match my LD_LIBRARY_PATH and CONFIG_SHELL=/bin/ksh):

LD_LIBRARY_PATH=/opt/sfw/include:/opt/sfw/include/readline:/usr/local/lib:/u
sr/X/lib:/usr/lib:/usr/ucblib:/lib:/usr/ccs/lib:/etc/lib:/usr/dt/lib:/opt/SU
NWspro/lib/amd64/:/opt/sfw/lib:/opt/csw/lib

Readline (version 4.2 from the Sun Companion CD) is located
in /opt/sfw/include/readline. Both the readline.h and history.h files
are there. Version 5.0 is located in /opt/csw/include/readline (from
Blastwave). As you can see, I am new at compiling in general and
Solaris specifically. Any help would be greatly appreciated.

System information:

System = SunOS
Release = 5.10
KernelID = Generic_118844-26
Machine = i86pc
OEM# = 0
Origin# = 1
NumCPU = 1

thanks,

aric

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html