Re: [R] RQuantLib installation problem

2023-09-26 Thread Naresh Gurbuxani
Updating to latest version of R and reinstalling RQuantLib worked.  

Thanks

> On Sep 24, 2023, at 5:29 PM, David Winsemius  wrote:
> 
> 
> On 9/24/23 08:23, Ivan Krylov wrote:
>> On Sun, 24 Sep 2023 02:19:20 +
>> Naresh Gurbuxani  wrote:
>> 
 install.packages("RQuantLib", repos = "https://cran.r-project.org;)
>>> Installing package into ‘/usr/local/lib/R/4.1/site-library’
>>> (as ‘lib’ is unspecified)
>>> trying URL
>>> 'https://cran.r-project.org/src/contrib/RQuantLib_0.4.17.tar.gz'
> 
> 
> Ivan is undoubtedly more knowledgeable on these matters than I, but I noticed 
> that you are trying to install the current version of RQuantLib into a 
> library that appears associated with a significantly older version of R than 
> is current the current version. (And I second the advice that this is a 
> question properly addressed to the R_SIG-mac mailing list but only with a 
> much better description of version of your setup and how R was installed. You 
> might want to install RQuantLib for a time frame that matched R 4.1.x. The 
> archive is here:
> 
> https://cran.r-project.org/src/contrib/00Archive/RQuantLib/
> 
> You may also want to set the compile flags so that R can find your version of 
> gfortran. That can be done within install.packages but most experts would 
> prefer that you do it from a system terminal session with $ R CMD INSTALL. 
> You can find details at the r help page `
> 
> ?INSTALL -- David
> 
>>  
>>> dyld[29996]: Library not loaded:
>>> /usr/local/opt/gcc/lib/gcc/11/libgfortran.5.dylib
>>> Referenced from: <383F3774-06DE-3792-AA2C-C9D6B37A2D89>
>>> /usr/local/Cellar/r/4.1.2/lib/R/lib/libR.dylib
>> So you're installing source packages into a Homebrew-built R, and they
>> fail to load after being compiled?
>> 
>> If you don't get an answer here, try r-sig-...@r-project.org or
>> .
>> 

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] RQuantLib installation problem

2023-09-24 Thread David Winsemius



On 9/24/23 08:23, Ivan Krylov wrote:

On Sun, 24 Sep 2023 02:19:20 +
Naresh Gurbuxani  wrote:


install.packages("RQuantLib", repos = "https://cran.r-project.org;)

Installing package into ‘/usr/local/lib/R/4.1/site-library’
(as ‘lib’ is unspecified)
trying URL
'https://cran.r-project.org/src/contrib/RQuantLib_0.4.17.tar.gz'



Ivan is undoubtedly more knowledgeable on these matters than I, but I 
noticed that you are trying to install the current version of RQuantLib 
into a library that appears associated with a significantly older 
version of R than is current the current version. (And I second the 
advice that this is a question properly addressed to the R_SIG-mac 
mailing list but only with a much better description of version of your 
setup and how R was installed. You might want to install RQuantLib for a 
time frame that matched R 4.1.x. The archive is here:


https://cran.r-project.org/src/contrib/00Archive/RQuantLib/

You may also want to set the compile flags so that R can find your 
version of gfortran. That can be done within install.packages but most 
experts would prefer that you do it from a system terminal session with 
$ R CMD INSTALL. You can find details at the r help page `


?INSTALL -- David

  

dyld[29996]: Library not loaded:
/usr/local/opt/gcc/lib/gcc/11/libgfortran.5.dylib
Referenced from: <383F3774-06DE-3792-AA2C-C9D6B37A2D89>
/usr/local/Cellar/r/4.1.2/lib/R/lib/libR.dylib

So you're installing source packages into a Homebrew-built R, and they
fail to load after being compiled?

If you don't get an answer here, try r-sig-...@r-project.org or
.



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] RQuantLib installation problem

2023-09-24 Thread Ivan Krylov
On Sun, 24 Sep 2023 02:19:20 +
Naresh Gurbuxani  wrote:

> > install.packages("RQuantLib", repos = "https://cran.r-project.org;)

> Installing package into ‘/usr/local/lib/R/4.1/site-library’
> (as ‘lib’ is unspecified)
> trying URL
> 'https://cran.r-project.org/src/contrib/RQuantLib_0.4.17.tar.gz'
 
> dyld[29996]: Library not loaded:
> /usr/local/opt/gcc/lib/gcc/11/libgfortran.5.dylib
> Referenced from: <383F3774-06DE-3792-AA2C-C9D6B37A2D89>
> /usr/local/Cellar/r/4.1.2/lib/R/lib/libR.dylib

So you're installing source packages into a Homebrew-built R, and they
fail to load after being compiled?

If you don't get an answer here, try r-sig-...@r-project.org or
.

-- 
Best regards,
Ivan

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] RQuantLib installation problem

2023-09-23 Thread Naresh Gurbuxani

In my mac, using brew, I installed boost and quantlib packages.  But
installation of RQuantLib errored out because R could not find
libgfortran.5.dylib

My mac does have this file, but in a different location.  Is there a
simple fix to install RQuantLib?

Thanks,
Naresh

~ $ ls /usr/local/gfortran/lib/libgfortran.5.dylib 
/usr/local/gfortran/lib/libgfortran.5.dylib

> install.packages("RQuantLib", repos = "https://cran.r-project.org;)
Installing package into ‘/usr/local/lib/R/4.1/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.r-project.org/src/contrib/RQuantLib_0.4.17.tar.gz'
Content type 'application/x-gzip' length 193331 bytes (188 KB)
==
downloaded 188 KB

dyld[29996]: Library not loaded: 
/usr/local/opt/gcc/lib/gcc/11/libgfortran.5.dylib
  Referenced from: <383F3774-06DE-3792-AA2C-C9D6B37A2D89> 
/usr/local/Cellar/r/4.1.2/lib/R/lib/libR.dylib
  Reason: tried: '/usr/local/opt/gcc/lib/gcc/11/libgfortran.5.dylib' (no such 
file), 
'/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/gcc/lib/gcc/11/libgfortran.5.dylib'
 (no such file), '/usr/local/opt/gcc/lib/gcc/11/libgfortran.5.dylib' (no such 
file), '/usr/local/Cellar/r/4.1.2/lib/R/lib/libgfortran.5.dylib' (no such 
file), 
'/usr/local/Cellar/openjdk/17.0.2/libexec/openjdk.jdk/Contents/Home/lib/server/libgfortran.5.dylib'
 (no such file)
/usr/local/Cellar/r/4.1.2/lib/R/bin/INSTALL: line 34: 29995 Done
echo 'tools:::.install_packages()'
 29996 Abort trap: 6   | R_DEFAULT_PACKAGES= LC_COLLATE=C 
"${R_HOME}/bin/R" $myArgs --no-echo --args ${args}

The downloaded source packages are in

‘/private/var/folders/97/5377j5_d207fshvjz_pz7szwgn/T/Rtmp9gBaE0/downloaded_packages’
Warning message:
In install.packages("RQuantLib", repos = "https://cran.r-project.org;) :
  installation of package ‘RQuantLib’ had non-zero exit status
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.