With Fedora 24 I run gkrellm system monitor and its plugin gkrellm-weather. gkrellm-weather is no longer supported by the Fedora project or by upstream. I'm using an RPM from Fedora 18. Due to a recent website change by the National Weather Service, it is necessary to modify gkrellm-weather.
I obtained the tar file for gkrellweather and extracted it to ~/gkrellweather-2.0.8. There are two code files: gkrellweather.c and a PERL program GrabWeather. The only change I needed to make was to modify a hardcoded URL in GrabWeather. I then ran "make" and "make install" as per instructions in the README.
gkrellm still does not update the weather observations. However, from the command line if I cd to ~/gkrellweather-2.0.8 and run the infinite loop: "GrabWeather KVAY; sleep 900 seconds", gkrellm correctly displays the current observations. Apparently "make install" did not place GrabWeather where it needs to be.
Below is the output from "make" and "make install". I'm not experienced with "make" or with PERL. Can someone interpret the output and recommend a fix?
[alfrugal@new-host gkrellweather-2.0.8]$ make
gcc -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags` -DPACKAGE="\"gkrellweather\"" -DPREFIX=\"/usr/local\" -DVERSION=\"2.0.8\" -c gkrellweather.c
(cd po && make all )
make[1]: Entering directory '/home/alfrugal/gkrellweather-2.0.8/po'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/alfrugal/gkrellweather-2.0.8/po'
gcc gkrellweather.o -DVERSION=\"2.0.8\" -o gkrellweather.so -shared `pkg-config gtk+-2.0 --libs` -lpthread
[alfrugal@new-host gkrellweather-2.0.8]$ su -
Password:
Last login: Sun Aug 28 21:43:33 EDT 2016 on pts/3
[root@new-host ~]# cd /home/alfrugal/gkrellweather-2.0.8
[root@new-host gkrellweather-2.0.8]# make install
(cd po && make install )
make[1]: Entering directory '/home/alfrugal/gkrellweather-2.0.8/po'
make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory '/home/alfrugal/gkrellweather-2.0.8/po'
if [ -d /usr/lib/gkrellm2/plugins/ ] ; then \
install -c -s -m 644 gkrellweather.so /usr/lib/gkrellm2/plugins/ ; \
elif [ -d /usr/local/lib/gkrellm2/plugins/ ] ; then \
install -c -s -m 644 gkrellweather.so /usr/local/lib/gkrellm2/plugins/ ; \
else \
install -D -c -s -m 644 gkrellweather.so /usr/local/lib/gkrellm2/plugins/gkrellweather.so ; \
fi
install -c -m 755 GrabWeather /usr/local/bin
[root@new-host gkrellweather-2.0.8]#
_______________________________________________ Mid-Hudson Valley Linux Users Group http://mhvlug.org https://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
Upcoming Meetings (6pm - 8pm) Vassar College * May 4 - Front-End Web Cli Tools Jun 1 - Selinux Jul 13 - Mad Science Fair Vi @ Lourdes