svenstaro / rofi-calc

🖩 Do live calculations in rofi!
MIT License
964 stars 31 forks source link

error when following instal instructions *** No targets specified and no makefile found #94

Closed NicTanghe closed 1 year ago

NicTanghe commented 1 year ago

running the install instructions returns the following error.

❯ git clone https://github.com/svenstaro/rofi-calc.git
Cloning into 'rofi-calc'...
remote: Enumerating objects: 500, done.
remote: Counting objects: 100% (104/104), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 500 (delta 54), reused 94 (delta 49), pack-reused 396
Receiving objects: 100% (500/500), 1.73 MiB | 1.97 MiB/s, done.
Resolving deltas: 100% (267/267), done.

❯ autoreconf -i
aclocal: warning: couldnt open directory 'm4': No such file or directory
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:32: installing './ar-lib'
configure.ac:17: installing './compile'
configure.ac:56: installing './config.guess'
configure.ac:56: installing './config.sub'
configure.ac:11: installing './install-sh'
configure.ac:11: installing './missing'
Makefile.am: installing './depcomp'

❯ mkdir build
❯ cd build/
❯ ../configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for glib... no
configure: error: Package requirements (glib-2.0 >= 2.40 gio-unix-2.0 gmodule-2.0 ) were not met:

Package 'glib-2.0', required by 'virtual:world', not found
Package 'gio-unix-2.0', required by 'virtual:world', not found
Package 'gmodule-2.0', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables glib_CFLAGS
and glib_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

importatnt part

❯ make
make: *** No targets specified and no makefile found.  Stop.
❯ make install
make: *** No rule to make target 'install'.  Stop.
svenstaro commented 1 year ago

The Makefile wasn't generated as the configure script failed as you are missing systems deps. Install the missing deps and try again.