Closed CouldBeThis closed 2 months ago
well the point is for macOS it is in brew officially, same with debian and what is based on it as well as freebsd... but thank you for your detailed report.
make install is always run as root, and sudo is not something everyone has. this is pretty standard.
I have been working at installing this because it looks great. :) There was no compatible package available so I downloaded the release v
1.4.1
.First issue is that the suggested
make install
results in this:Which I guessed correctly meant that
sudo
was required. Perhaps either the error or the instructions could be clarified. Sosudo make install
whose output was also confusing:successful? not? easy to find out by running
fnt
which alerted that there are unmet dependencies:So I went to find this package
chafa
, which was not available viaapt
. On the developer's page there are instructions on how to add theppa
so I am guessing many people would not find it available by default. But installed it one way or another.then tried running
fnt
I was able to find how to install
otfinfo
only as part of the packagelcdf-typetools
; not sure if it is available independently. The latter was available viaapt
whileotfinfo
itself was not.I think it is traditional for dependencies to be checked during install rather than afterwards, when the program is run? Not sure if the output of
make
was something to do with that.Assuming you do not want to get extremely complicated with figuring out what exactly version of OS each user is running and providing precise instructions, I don't know but maybe something like these would be helpful error messages instead:
Also when I was poking around in
fnt
I noticed something about the the error dispayed ifbrew
is not found on Mac.If I am reading correctly, it looks like the error if
brew
is not installed would be instructions to usebrew
to install it. If the case, I would suggest the following insteadI am not a programmer but I did search the repo to find code about the dependencies. I think the relevant bit is here. Based on that, here is a draft/suggestion of what could reasonably included in the readme or some ancillary location for dependencies.
I included explicit instructions for Mac and Linux which are the two systems I am familiar with (Mac more than the 1000 variations of Linux).
cmd.exe
as last I knew that was part of the OS so maybe that's just internal for the program and nothing the user would need to think of, therefor does not need mentioned.I am happy to make a PR for the readme if you are amenable to this. As I mentioned I am not a programmer or anything so if there is a bunch of requirements to setting up a development environment it is unlikely to be worth the time. If it's just textfiles and git I can do it. I'm not capable of making a PR for the error messages because they require coding.
Or you can handle it whatever way works for you, edit, discard etc.