[R] Help: Error when installing R 2.8.1 in IBM AIX system from source code
Jeff Newmiller
jdnewmil at dcn.davis.CA.us
Wed Jul 17 17:02:27 CEST 2013
Help with outdated versions of R, and particularly with nonstandard patch files, are not really on topic here. Posting in HTML format is not advised (see posting guide) since it actually makes it harder to read R code, so text coloring doesn't come through.
It appears to me that your patch failed to make necessary changes to the R source code to be compatible your operating system in step 3. It is possible that you were using an incompatible version of the patch program. You may need to obtain the version of GNU compilers and other toolchain components that were used in developing that particular version of R. You probably need help from a programmer who is familiar with AIX and Unix development to help you interpret the compiler errors and warnings.
With appropriate local technical support for composing questions, you may be able to get more focused answers on the R-devel mailing list rather than here. However, the issue of asking questions about an old version of the R source code may still prove unpopular, so it may be better to study the intent of your existing patch files and try to adapt them to a v3.0.x version before asking for help there.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
De Xin Luan <luandex at cn.ibm.com> wrote:
>
>Hi R-Help,
>
>When we tried to install R 2.8.1 in our AIX system, we faced some
>error,
>please help.
>
>OS level: AIX 7.1 64 bit
>R 2.8.1
>
>We had a guide about How to install R 2.8.1 in AIX from R source code.
>Here
>is what I did:
>
>1.��Download the R source file, for example R-2.8.1.tar.gz , from
>http://www.r-project.org/ (or
>ftp://ftp.stat.math.ethz.ch/Software/CRAN/src/base/R-2/) and save it to
>the
>temporary directory.
>
>2. cd /spss/src
>tar xzf R-2.8.1.tar.gz
>cd R-2.8.1
>
>3.��Download and install the patch from
>http://prs.ism.ac.jp/~nakama/AIX/AIX_R-2.8.1_fix.patch.
>
>mv��AIX_R-2.8.1_fix.patch��/spss/src/R-2.8.1
>chown -R root:system��/spss/src/R-2.8.1
>chmod -R 775��/spss/src/R-2.8.1
>
>zspssdb2was5:/spss/src/R-2.8.1# patch -p1 < AIX_R-2.8.1_fix.patch
>Hmm... ��Looks like a unified context diff to me...
>The text leading up to this was:
>--------------------------
>|diff -ruN R-2.8.1.orig/Makeconf.in R-2.8.1/Makeconf.in
>|--- R-2.8.1.orig/Makeconf.in �� 2008-10-17 11:05:02.000000000 +0900
>|+++ R-2.8.1/Makeconf.in �� �� �� ��2009-02-19 17:48:17.000000000 +0900
>--------------------------
>Patching file Makeconf.in using Plan A...
>Malformed patch at line 5: ��MAIN_CFLAGS = @MAIN_CFLAGS@
>
>4. Set parameters
>
>export ICONVINC=-I/opt/freeware/include
>export PNGINC=-I/opt/freeware/include
>export JPEGINC=-I/opt/freeware/include
>export ZLIBINC=-I/opt/freeware/include
>export ICONVLIB=-L/opt/freeware/lib
>export PNGLIB=-L/opt/freeware/lib
>export JPEGLIB=-L/opt/freeware/lib
>export ZLIBLIB=-L/opt/freeware/lib
>
>export CC="xlc_r -q64"
>export CXX="xlC_r -q64"
>export CXXFLAGS="-O -qstrict"
>export CFLAGS="-O -qstrict"
>export F77="xlf_r -q64"
>export AR="ar -X64"
>export CPPFLAGS="$ICONVINC $PNGINC $JPEGINC $ZLIBINC
>-I/usr/lpp/X11/include/X11"
>export LDFLAGS="$ICONVLIB $PNGLIB $JPEGLIB $ZLIBLIB -L/usr/lib
>-L/usr/X11R6/lib"
>export OBJECT_MODE="64"
>
>
>
>5. ./configure --prefix=/opt/R-2.8.1��--enable-R-shlib
>--enable-BLAS-shlib
>--with-x --with-readline=no
>
>R is now configured for rs6000-ibm-aix
>
>�� Source directory: �� �� �� �� ��.
>�� Installation directory: �� ��/opt/R-2.8.1
>
>�� C compiler: �� �� �� �� �� �� �� ��xlc_r -q64 ��-O -qstrict
>�� Fortran 77 compiler: �� �� �� xlf_r -q64 ��-g
>
>�� C++ compiler: �� �� �� �� �� �� ��xlC_r -q64 ��-O -qstrict
>�� Fortran 90/95 compiler: �� ��gfortran
>�� Obj-C compiler:
>
>�� Interfaces supported: �� �� ��X11, tcltk
>�� External libraries:
>�� Additional capabilities: �� TIFF, iconv, MBCS, NLS
>�� Options enabled: �� �� �� �� �� shared R library, shared BLAS, R
>profiling,
>Java
>
>�� Recommended packages: �� �� ��yes
>
>configure: WARNING: you cannot build DVI versions of the R manuals
>configure: WARNING: you cannot build info or HTML versions of the R
>manuals
>configure: WARNING: you cannot build PDF versions of the R manuals
>configure: WARNING: I could not determine a browser
>configure: WARNING: I could not determine a PDF viewer
>
>
>Issue1: during "configure" step, I faced below error in red, and I take
>below action in blue:
>./configure[20510]: "${}": bad substitution
>at line 20510 of ./configure file, add below line:
>shlibpath_var=LD_LIBRARY_PATH
>
>
>6. make
>
>Issue: during "make" step, I faced the below error in red, I don't know
>how
>to fix it.
>../../../bin/R[206]: "${}": bad substitution
>make: The error code from the last command is 1.
>
>
>Stop.
>
>
>
>Thanks and Best Regards.
>
>
>
>De Xin Luan (��� ������)
>
>Application Developer-- Business Intelligence & = What is BAO?
>
>Performance Management = Global BAO Wiki
>
>BAO Service Line, As Delivery = China GDC BAO
>Wiki
>China Global Delivery = Japan BAO Wiki
>
>Office: +86,411,88151485 T/L: 61901 Mobile: = GCG BAO Wiki
>
>+86,186,4342,5156 = Sales &
>Delivery
>E-mail: luandex at cn.ibm.com = BOSS (BAO
>Offerings and Solutions Store)
> = GBS Solutions and Assets
>BAO can provide you below products and services: = BAO University
>
>BAO-BIPM: Cognos, BI Reporting Tools, TM1, = BAO University
>Virtual Campus
>OpenPages, Algorithmic = Smarter
>Analytics University
>BAO-EIM: DataStage, Informatica, MDM, Netezza, = BAO Tube
>
>Data Modeler = Practitioner
>Portal
>BAO-DBA: DB2 DBA, Oracle DBA, Sybase DBA = IBM CareerSmart
>
>BAO-Advanced Analytics & ECM: SPSS, iLog, BigData
>
>and FileNet
>
>BAO-Strategy & CoC : BAO Strategy, BAO CoC, and
>
>BAO Consulting Community
>
>
>
>
>Click here for BAO Service Area contact point.
>
>
>
>
>
>
>
>
> [[alternative HTML version deleted]]
>
>
>
>------------------------------------------------------------------------
>
>______________________________________________
>R-help at 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.
More information about the R-help
mailing list