Why is topdir set to its default value when rpmbuild called from tcl?

There’s two ways to change the default rpmbuild topdir: Per-User: By configuring the RPM topdir in $HOME/.rpmmacros %_topdir %{getenv:HOME}/rpmbuild Per-Project: By configuring the RPM topdir in the Makefile or on the command line rpmbuild –define ‘_topdir build’ -ba package.spec Note: in both cases, you will need to make sure your topdir directory has the appropriate … Read more

error: curl: /usr/local/lib/libcurl.so.4: no version information available (required by curl)

I also had a problem with libcurl.so.4: no version information available in installing CMAKE. I type cmake, the output is: cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake) Segmentation fault (core dumped)` I solved this by doing the following: First, I locate the path of libcurl.so.4: locate libcurl.so.4 the result is: /home/chenjian/software/curl-7.20.0/lib/.libs/libcurl.so.4 /home/chenjian/software/curl-7.20.0/lib/.libs/libcurl.so.4.2.0 /usr/lib/x86_64-linux-gnu/libcurl.so.4 … Read more

Get the version of TCL from the command-line?

This might sound too simplistic, but if you made a script file that contained the commands: puts $tcl_version And then ran tclsh sillyscript.tcl, that would execute on all platforms, assuming binary is in PATH. It certainly isn’t fancy or flashy, or even neat, but it satisfies that requirement AFAIK. ==== I got curious, so I … Read more

List of All Tkinter Events

A general list for Bindings and Events can be found on effbot.org or in the docs provided by New Mexico Tech whereas the name of several keys are listed here in addition to the original documentation. Here’s a summary of the most common events with some keypress names explained: Event Description <Button-1> Button 1 is … Read more