Opened 4 years ago
Last modified 4 years ago
#1714 new defect
types.db not found on mingw32
Reported by: | Răzvan Rotaru | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | someday |
Component: | unknown | Version: | 5.2.0 |
Keywords: | Cc: | ||
Estimated difficulty: |
Description
Hi,
On my build (Windows, with an old mingw32) types.db
is not found anymore.
D:\tmp\chicken\'types.db' not found>type str.scm (display "Sunday") (newline) D:\tmp\chicken\'types.db' not found>chicken str.scm -output-file "str.c" Error: default type-database `types.db' not found
Chicken is installed in "C:\Program Files (x86)\Chicken Scheme", and types.db is in "c:\Program Files (x86)\Chicken Scheme\lib\chicken\11\"
. Where does csc look for types.db
?
Note: See
TracTickets for help on using
tickets.
I found the problem.
chicken.exe
looks fortypes.db
inc:/chicken/lib/chicken/11
, becausec:/chicken
is the prefix with which chicken was compiled.Setting the environment variable
CHICKEN_REPOSITORY_PATH
to the correct path solves the problem. Unfortunately the same happens when usingcsc
:The bigger problem seems to be following: the installer I built for windows installs a precompiled version of chicken, and relies on the environment variable
CHICKEN_PREFIX
to override the prefix which was used during build. This does not seem to work.So the question is whether and how this can be done. The various paths seem to be defined in C variables.
Can they be overridden/changed after chicken was build?
Sources for the installer are here: https://bitbucket.org/roti/chicken-installer