GIT is the best way to acquire the code, so it is necessary to install this software first. Besides, there are several packages needed to patch before the click installs. And it is also tricky for the final step of installation.
**************
# git clone git://git.kernel.org/pub/scm/git/git.git
# apt-get install git-core
# git clone git://read.cs.ucla.edu/git/click
# apt-get install autoconf
# apt-get install libgtk2.0-dev
# apt-get install libtool
To update to the latest version checked in to the public repository, change into your working copy directory DIR and run:
# git pull
To fetch the Click packages:
# git clone git://read.cs.ucla.edu/git/click-packages DIR
Installation of Click:
# cd CLICKDIR
# ./configure --prefix=$HOME --enable-analysis --enable-test
# make install
The –prefix=$HOME configuration switch causes Click to install into your home directory. To run the Click driver and read its manual pages, you'll need to add $HOME/bin and $HOME/man to your PATH and MANPATH environment variables, respectively. Alternatively, if you have root privilege on your machine, you can install Click in /usr/local, /usr/local/click, or wherever you'd like.
The –enable-analysis and –enable-test configuration switches turn on support for two necessary sub-packages, including trace analysis and regression test elements.
If you get a bus error when running Click on a Solaris or other non-x86 machine, try running your configuration through click-align: “click-align config.click | click”.
Furthermore, make sure your system has the necessary libraries and packages
installed. On a Debian or Ubuntu system, this will include automake,
autoconf, libtool, libgtk2.0-dev (or libgtk2-dev), and graphviz. Then:
# cd CLICKDIR/apps/clicky
# autoreconf -i
# ./configure [--prefix=PREFIX] --with-click=CLICKPREFIX
# make install
That's done:)
But on the other hand, there are some warning coming out, although they seem to be all right till now.
FIRST & SECOND appear in the Click Configuration step.
Your Linux kernel header files cause errors when included by a C++ program,
so I won't try to compile the linuxmodule driver.
There are two common reasons for this error:
1. You have not applied the Linux kernel patch that comes with this distribution. Apply the right patch and try again. See the INSTALL file for more information.
2. Your Linux configuration enables some functionality that is not yet covered by our patches. Turn off this functionality and try again, or fix the error and tell us how you did it. See the config.log file for more detailed information on the error.
==============
WARNING: `makeinfo' is missing on your system. You should only need it if you modified a `.texi' or `.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy `make' (AIX, DU, IRIX). You might want to install the `Texinfo' package or the `GNU make' package. Grab either from any GNU archive site.
=============
The THIRD comes out when I build the Click install.
click-elem2man: warning: category 'devices' begins with a lowercase letter (used in UMLSwitch)
click-elem2man: warning: category 'devices' begins with a lowercase letter (used in UMLSwitch)
../missing makeinfo ./click.texi
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
make[1]: [click.info] Error 1 (ignored)
......
install-info: warning: don't call programs like install-info with an absolute path,
install-info: warning: /usr/sbin/install-info provided by dpkg is deprecated and will go away soon;
install-info: warning: its replacement lives in /usr/bin/.
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
install-info: No such file or directory for /root/share/info/click.info
make[1]: [install-info] Error 1 (ignored)
=============
The FINAL one appears when I build the clicky.
xcallbacks.c: In function ‘on_cut1_activate’:
xcallbacks.c:11: warning: unused parameter ‘menuitem’
xcallbacks.c:12: warning: unused parameter ‘user_data’
xcallbacks.c: In function ‘on_copy1_activate’:
xcallbacks.c:19: warning: unused parameter ‘menuitem’
xcallbacks.c:20: warning: unused parameter ‘user_data’
xcallbacks.c: In function ‘on_paste1_activate’:
xcallbacks.c:27: warning: unused parameter ‘menuitem’
xcallbacks.c:28: warning: unused parameter ‘user_data’
xcallbacks.c: In function ‘on_clear1_activate’:
xcallbacks.c:35: warning: unused parameter ‘menuitem’
xcallbacks.c:36: warning: unused parameter ‘user_data’
xcallbacks.c: In function ‘on_properties1_activate’:
xcallbacks.c:43: warning: unused parameter ‘menuitem’
xcallbacks.c:44: warning: unused parameter ‘user_data’
xcallbacks.c: In function ‘on_preferences1_activate’:
xcallbacks.c:51: warning: unused parameter ‘menuitem’
xcallbacks.c:52: warning: unused parameter ‘user_data’
xcallbacks.c: In function ‘on_about1_activate’:
xcallbacks.c:59: warning: unused parameter ‘menuitem’
xcallbacks.c:60: warning: unused parameter ‘user_data’
July 5, 2010
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment