[R] binary version of R 2.8.x

2009-04-07 Thread tomkur2006-takehome


Hello,

Is there any binary version of R 2.8.x available for x86 Solaris 10?  I need it 
so that I can use some R library files.  I actually tried to compile the source 
myself, but it failed.  I don't know much about how to compile source files on 
Solaris, and it will be great if there is a binary version of R 2.8.x 
available.  Thanks.

/***error after running make***/
util.c: In function `Rf_mbrtowc':
util.c:1147: parse error before `char'
util.c:1150: `p' undeclared (first use in this function)
util.c:1150: (Each undeclared identifier is reported only once
util.c:1150: for each function it appears in.)
util.c:1150: `q' undeclared (first use in this function)
util.c:1150: `err' undeclared (first use in this function)
make[3]: *** [util.o] Error 1
make[3]: Leaving directory `/var/tmp/R-2.8.1/src/main'
make[2]: *** [R] Error 2
make[2]: Leaving directory `/var/tmp/R-2.8.1/src/main'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/var/tmp/R-2.8.1/src'
make: *** [R] Error 1

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] binary version of R 2.8.x

2009-04-08 Thread tomkur2006-takehome

Yes, ./configure works with no error.
I guess it's a problem of my environment setup.  It's my first attempt to build 
it myself, and I have downloaded the binaries and installed it previously.


--- On Wed, 4/8/09, stephen sefick  wrote:

> From: stephen sefick 
> Subject: Re: [R] binary version of R 2.8.x
> To: tomkur2006-takeh...@yahoo.com
> Cc: r-help@r-project.org
> Date: Wednesday, April 8, 2009, 7:35 AM
> ./configure works with no errors ?
> I have compiled on mac os x and debian so my advice may be
> circumspect, but the errors I don't know what they are.
> 
> On Tue, Apr 7, 2009 at 10:17 PM, 
>  wrote:
> >
> >
> > Hello,
> >
> > Is there any binary version of R 2.8.x available for
> x86 Solaris 10?  I need it so that I can use some R library
> files.  I actually tried to compile the source myself, but
> it failed.  I don't know much about how to compile
> source files on Solaris, and it will be great if there is a
> binary version of R 2.8.x available.  Thanks.
> >
> > /***error after running make***/
> > util.c: In function `Rf_mbrtowc':
> > util.c:1147: parse error before `char'
> > util.c:1150: `p' undeclared (first use in this
> function)
> > util.c:1150: (Each undeclared identifier is reported
> only once
> > util.c:1150: for each function it appears in.)
> > util.c:1150: `q' undeclared (first use in this
> function)
> > util.c:1150: `err' undeclared (first use in this
> function)
> > make[3]: *** [util.o] Error 1
> > make[3]: Leaving directory
> `/var/tmp/R-2.8.1/src/main'
> > make[2]: *** [R] Error 2
> > make[2]: Leaving directory
> `/var/tmp/R-2.8.1/src/main'
> > make[1]: *** [R] Error 1
> > make[1]: Leaving directory `/var/tmp/R-2.8.1/src'
> > make: *** [R] Error 1
> >
> > __
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained,
> reproducible code.
> >
> 
> 
> 
> -- 
> Stephen Sefick
> 
> Let's not spend our time and resources thinking about
> things that are
> so little or so large that all they really do for us is
> puff us up and
> make us feel like gods.  We are mammals, and have not
> exhausted the
> annoying little problems of being mammals.
> 
>   -K. Mullis

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] coredump at the of 'configure' and error for 'make'

2008-03-20 Thread tomkur2006-takehome
Hi,

I got some errors when I attempted to build R on my Solaris 9 box.  Can someone 
please provide some suggestion on what to do next?
The "configure" process was fine expect that I got a some warning message and a 
coredump at the end.
What does that affect?  Can I still build it?

./configure --prefix=/var/tmp/R/  --with-x=no

R is now configured for i386-pc-solaris2.9

  Source directory:  .
  Installation directory:/var/tmp/R/

  C compiler:gcc  -g -O2
  Fortran 77 compiler:   g77  -g -O2

  C++ compiler:  g++  -g -O2
  Fortran 90/95 compiler:g77 -g -O2
  Obj-C compiler: -g -O2

  Interfaces supported:  
  External libraries:readline
  Additional capabilities:   PNG, JPEG, iconv, MBCS, NLS
  Options enabled:   shared BLAS, R profiling, Java

  Recommended packages:  yes

configure: WARNING: you cannot build the object documentation system
configure: WARNING: I could not determine a browser
configure: WARNING: I could not determine a PDF viewer
./configure[64111]: 10817 Segmentation Fault(coredump)


I tried to build it anyway.
When I ran "make", I got an error.  
What may go wrong here?

make[3]: Leaving directory `/var/tmp/R-2.6.2/src/library/profile'
make[3]: Entering directory `/var/tmp/R-2.6.2/src/library/base'
building package 'base'
all.R is unchanged
../../../library/base/R/base is unchanged
../../../bin/R: bad substitution
make[3]: *** [all] Error 1
make[3]: Leaving directory `/var/tmp/R-2.6.2/src/library/base'
make[2]: *** [R] Error 1
make[2]: Leaving directory `/var/tmp/R-2.6.2/src/library'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/var/tmp/R-2.6.2/src'
make: *** [R] Error 1


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] sample codes for writting a function with unknown number of arguments

2008-03-21 Thread tomkur2006-takehome
Hi,

I need to scan some files, and then do a boxplot graph of them.  I also save 
the output from the boxplot function, so I can process the data later.

For example, I need to scan 2 (it can be x, 0https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] make error: ../../../bin/R: bad substitution

2008-03-24 Thread tomkur2006-takehome
Hi,

I am getting this error when I run 'make' under src/library/base:
../../../library/base/R/base is unchanged
../../../bin/R: bad substitution
make: *** [all] Error 1

I traced it down to the following line in src/library/base/Makefile:
   @cat $(srcdir)/makebasedb.R | \
  R_DEFAULT_PACKAGES=NULL LC_ALL=C $(R_EXE) --slave > /dev/null

I am trying to build R-2.6.2 on a Solaris 9 box.
Can anyone advise on what may go wrong?  Thank you.


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] unable to load shared library '/usr/local/lib/R/modules//R_X11.so'

2008-03-16 Thread tomkur2006-takehome
Hi,

I downloaded a binary version of R for my Solaris 10 box (from 
http://www.sunfreeware.com/programlistsparc10.html#R), and everything looked 
fine during the installation.   However, I got a "X11 module cannot be loaded" 
error when I attempted to save a graph to be a png file.  Does it look like a 
problem of the Solaris box or a problem of the installation (missing library 
file)?  Thanks in advance.

> png(filename="test.png",height=480, width=640)
Error in png(filename = "test.png", height = 480, width = 640) : 
  X11 module cannot be loaded
In addition: Warning message:
In png(filename = "test.png", height = 480, width = 640) :
  unable to load shared library '/usr/local/lib/R/modules//R_X11.so':
  ld.so.1: R: fatal: libSM.so.6: open failed: No such file or directory


The file '/usr/local/lib/R/modules//R_X11.so' was physically there.
-bash-3.00$ ls -l /usr/local/lib/R/modules//R_X11.so
-rwxr-xr-x   1 bin  bin   112152 Oct  5 02:02 
/usr/local/lib/R/modules//R_X11.so




[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.