[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Finding out if a C compiler is installed
- From: "szbnwer@..." <szbnwer@...>
- Date: Thu, 19 Jul 2018 16:15:34 +0000
hi there! :)
2018-07-15 19:48 GMT+00:00 Sarah <morningcrafter0603@gmail.com>:
> I am writing a build script in Lua for my language and I need to find
> out if the user has either Clang or GCC installed.
this is what ive made for myself in bash:
if [[ "$(dpkg-query -l $i 2>&1)" == *dpkg-query* ]]; then
you can make anything like this with an another package manager i
think, and you can make a lua alternative with os.execute or
io.popoen.
good luck, have fun, and all the bests for every1 around! :)