msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.28k stars 1.22k forks source link

[chicken] can not relocate path #15713

Open je-strom opened 1 year ago

je-strom commented 1 year ago

Description / Steps to reproduce the issue

chicken-install -u Error: (open-output-file) cannot open file - No such file or directory: "/mingw64/lib/chicken/11\modules.db"

Expected behavior

had hope to get some eggs

Actual behavior

chicken-install -u Error: (open-output-file) cannot open file - No such file or directory: "/mingw64/lib/chicken/11\modules.db"

Verification

Windows Version

MSYS_NT-10.0-19045

MINGW environments affected

Are you willing to submit a PR?

No response

Biswa96 commented 1 year ago

I get some error in ArchLinux also.

$ chicken-install -u
loading import libraries ...
generating database ...

Error: (open-output-file) cannot open file - Permission denied: "/usr/lib/chicken/11/modules.db"

Is this issue reported to upstream project? Though we could workaround the issue.

je-strom commented 1 year ago

On Linux i guess you have to run chicken-install with raised privileges?

Biswa96 commented 1 year ago

This issue seems to be a path relocation issue. For example, chicken-install program searches this file C:\ucrt64\lib\chicken\11\modules.db. The correct path should be C:\msys64\ucrt64\lib\chicken\11\modules.db. Assuming that the msys64 directory is the install directory of msys2. The modules.db is mentioned in some Scheme language files. Sadly, I am not familiar with that programming language. But others may help.