Thanks for this explanation.  That is exactly what was happening.  I regret
not noticing the issue from this:

# ldd stats.dll
ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7ff9fc820000)
KERNEL32.DLL => /cygdrive/c/Windows/System32/KERNEL32.DLL (0x7ff9fbf10000)
KERNELBASE.dll => /cygdrive/c/Windows/System32/KERNELBASE.dll
(0x7ff9fa260000)
msvcrt.dll => /cygdrive/c/Windows/System32/msvcrt.dll (0x7ff9fb930000)
stats.dll => /usr/lib/R/library/stats/libs/stats.dll (0x3ee780000)
cygwin1.dll => /usr/bin/cygwin1.dll (0x7ff9ee760000)
libR.dll => /usr/bin/libR.dll (0x3ef040000)
cyggomp-1.dll => /usr/bin/cyggomp-1.dll (0x3f95a0000)
cygblas-0.dll => /usr/bin/cygblas-0.dll (0x3ec3f0000)
cyglapack-0.dll => not found

I do wonder if the error message could be changed from file not found to
file could not be loaded.

Thank you so much!  --Stephen

On Sat, Dec 2, 2023 at 4:37 AM Marco Atzeri <marco.atz...@gmail.com> wrote:

> On 02/12/2023 00:29, Stephen P Carrier wrote:
> >
> >
> > On Fri, Dec 1, 2023 at 3:24 PM Stephen P Carrier <carr...@berkeley.edu
> > <mailto:carr...@berkeley.edu>> wrote:
> >
> >
> >
> >     On Tue, Nov 28, 2023 at 8:32 PM Marco Atzeri <marco.atz...@gmail.com
> >     <mailto:marco.atz...@gmail.com>> wrote:
> >
> >         On 29.11.2023 02:12, Stephen P Carrier via Cygwin wrote:
> >          > I have found another issue with Cygwin R.
> >          >
> >          > This is for a brand new R installation (4.3.0) on up-to-date
> >         Cygwin.  I am
> >          > warned when starting R that "stats" package was not found.
> >         Though it was
> >          > just a warning I do need the stats package for some things.
> >          >
> >          > Minimal test case:  I invoke "R" with no arguments and get:
>
> >          > During startup - Warning message:
> >          > package ‘stats’ in options("defaultPackages") was not found
> >          >> library("stats")
> >          > Error: package or namespace load failed for ‘stats’ in
> >         dyn.load(file,
> >          > DLLpath = DLLpath, ...):
> >          >   unable to load shared object
> >         '/usr/lib/R/library/stats/libs/stats.dll':
> >          >    No such file or directory
>
> Hi Stephen,
> a big hint is what stats.dll requires
>
> $ cygcheck /usr/lib/R/library/stats/libs/stats.dll | grep -v "^   "
> C:\cygwin64\lib\R\library\stats\libs\stats.dll
>    C:\cygwin64\bin\libR.dll
>    C:\cygwin64\lib\lapack\cyglapack-0.dll
>
> the last math library is, for specific system reason, in an unusual
> position, and for that reason the package provides the etc/profile to
> add "/usr/lib/lapack" to the PATH
>
> $ cygcheck -l liblapack0
> /etc/profile.d/lapack0.csh
> /etc/profile.d/lapack0.sh
> /usr/lib/lapack/cygblas-0.dll
> /usr/lib/lapack/cyglapack-0.dl
>
> $ echo $PATH
>
> /home/marco/bin:/usr/local/bin:/usr/bin:/usr/lib/lapack:/usr/sbin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/d/utility
>
> I assume that you are redefining the PATH and missed this Lapack directory
>
>
> Regards
> Marco
>
>
>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to