Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[casile setup]: make: rules/casile.mk: No such file or directory #5

Closed
felipesanches opened this issue Jul 16, 2021 · 4 comments
Closed

Comments

@felipesanches
Copy link

Screenshot from 2021-07-15 22-22-26

@felipesanches
Copy link
Author

Not sure if also relevant, but here's the context in which I'm trying the demos: sile-typesetter/casile#123

@alerque
Copy link
Member

alerque commented Jul 16, 2021

Thanks for this report. I'm pretty sure this is an issue with your build, not with the demo repo (which I just checked in a clean chroot using CasILE v0.6.0). The files it says are missing (rules/casile.mk and rules/rules.mk) should be part of the CaSILE install. On Arch Linux for example they get installed as /usr/share/casile/rules/casile.mk. For some reason your casile command does not know where to find these resource files.

Are you running casile installed to your system (e.g. having used sudo make install) or are you using it aliased to the Git clone where you built it (e.g. alias casile=~fsanches/devel/github_felipesanches/casile/casile)? You can do the latter, but if you want to run uninstalled like that you do need to used different config options:

$ ./configure --datarootdir=$(cd ..;pwd) --enable-debug

Without this it will assume is is being prepared for install and if you try to run it it will look for data resources on your system instead of relative to itself.

If that isn't your problem let me know and I'll try to figure out what is.

@felipesanches
Copy link
Author

I'll try to figure it out later. I gotta go sleep now since it is 5:25AM in the place I live :-P

Once I get back to it I'll let you know. Thanks for the help!

@alerque
Copy link
Member

alerque commented Jan 31, 2023

Looking at this again it definitely looks like you were trying to solve a path problem because CaSILE sources were not installed on the system by moving local project files in your book project. The casile.mk file should go at the project root, not in a rules/ directory. The rules/casile.mk file it could not find is the one that should be installed. It really does look like you were running the casile binary from a source directory where it was built and it doesn't know where to find the resources relative to your project. It can be used like this (I do it all the time for developing CaSILE while testing it on some book project) but you must ./configure --datarootdir=$(cd ..;pwd) for it to use whatever directory you are building in as the expected location for resources.

Happy to help if there is a remaining problem getting started.

@alerque alerque closed this as completed Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants