Thank you for your support.
I did run fix-distribution command.
I installed and configured in following steps.
First, I tried unpack download file using "/bin/cat dist.tar.gz | gunzip -c | /bin/tar xUXof - " which is shown in R_README.ZOS file of R3.3.1, but it failed.
$ cat r-3.3.2_b0005.170107.tar.gz | gunzip -c | tar xUXof -
gzip: stdin: unexpected end of file
633 blocks
FSUM7131 Out of space or reached the end of the archive file.
If you want to go on, type device or file name when ready
So I unpack the distributed file by 7zip on Windows PC and then uploaded tar file.
After that I unpacked python-devel and R in following directory for each.
/usr/lpp/R332/python-devel
/usr/lpp/R332/R
python-devel install
$ gunzip python-r-devel_b0005.161122.tar.gz
$ mv python-r-devel_b0005.161122.tar python-devel/
$ cd /usr/lpp/R332/python-devel
$ tar -xUXof python-r-devel_b0005.161122.tar
$ find . -type f -filetag u -print | wc -l
57
$ find . -type f -print | wc -l
17723
$ ./bin/fix-distribution
R install
$ gunzip r-3.3.2_b0005.161122.tar.gz
$ mv r-3.3.2_b0005.161122.tar R/
$ cd /usr/lpp/R332/R
$ tar -xUXof r-3.3.2_b0005.161122.tar
$ find . -type f -filetag u -print | /bin/wc -l
8
$ find . -type f -print | /bin/wc -l
16381
$ ./bin/fix-distribution
Add environment variables in .profile
# env for python-devel
export BD=/usr/lpp/R332/python-devel
export PATH=$BD/bin:$PATH
export LIBPATH=$BD/lib:$LIBPATH
export PKG_CONFIG_PATH=$BD/lib/pkgconfig:$BD/share/pkgconfig
export CURL_CA_BUNDLE=$BD/etc/ssl/cacert.pem
export FFI_LIB=$BD/lib/ffi
export X11_DIST=$BD
export DEVEL_DIST=$BD
# env for R332
export _BPXK_AUTOCVT=ON
export BASE=/usr/lpp/R332/R
export PATH=$BASE/bin:$PATH
export LIBPATH=$BASE/lib:$LIBPATH
export PKG_CONFIG_PATH=$BASE/lib/pkgconfig:$PKG_CONFIG_PATH
export TZDIR=$BASE/lib/R/share/zoneinfo
export RHOME=$BASE/lib/R
export R_DIST=$BASE
And following are command results you requested.
$ ls -lT /usr/lpp/R332/R/bin/R /usr/lpp/R332/R/lib/R/bin/R
t ISO8859-1 T=on -rwxrwxrwx 1 AZUMA STC 8884 Jan 19 07:19 /usr/lpp/R332/R/bin/R
t ISO8859-1 T=on -rwxrwxrwx 1 AZUMA STC 8884 Jan 19 07:19 /usr/lpp/R332/R/lib/R/bin/R
$ cmp /usr/lpp/R332/R/bin/R /usr/lpp/R332/R/lib/R/bin/R
$ head -l 1 /usr/lpp/R332/R/bin/R
#!/rsusr/ported/bin/bash
$ head -l 1 /usr/lpp/R332/R/lib/R/bin/R
#!/rsusr/ported/bin/bash
I concerned about “/rsusr/ported/bin/bash” in the command result .
Is bash required for using R ?
regards.
Tomohiro Taguchi