Showing posts with label Tutorials. Show all posts
Showing posts with label Tutorials. Show all posts

Friday, December 19, 2008

Setting up apache with subversion

Steps for setting up apache with subversion [For debian system]
Step 1. Install apache [here 2.0.63] as
./configure --prefix=/usr/local/apache2 --with-port=2080 --enable-dav --enable-dav-fs --enable-rewrite --enable-so
make
make install
/usr/local/apache2/bin/apachectl start
/* make sure these packages are already installed in your system. Autoconf, libtool, phython 2, libxml, zlib, neon */
Install all packages from synaptic. Neon instructions can be get from
Here

Step 2. Install subversion [here 1.4.2] as
./configure --with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2
make
make install
Step 3. Make a repository
cd /var/
mkdir -p repo/source/
svnadmin create /var/repo/source
Step 4. Configure apache
Stop and edit http.conf file as
/usr/local/apache2/bin/apachectl stop
vi /usr/local/apache2/conf/httpd.conf
add this to bottom of http.conf

DAV svn
SVNPath /var/repo/source

Step 5. Restart apache and checkout. You will get
localhost:/usr/local/apache2# svn co http://localhost:2080/svn
Checked out revision 0.
In address bar also you can checkout. You’l get Revision 0: /
Thats all. Enjoy

[PS: This solved your problem? comment if it do or not. If this is not exactly your problem, please mail me. I can help you. randeep123@gmail.com . And If you found another way to solve it, please post it.. It will help a lot of people. Thank you]

Solution: configure: error: pangoxft Pango backend found but did not find freetype libraries.

Here is how we can solve the pango freetype library missing error

1. Run the terminal.
2. Goto the directory under particular configure file resides.
3. open the configure file by vi configure
edit the following lines as [comment it;add # in front of each line as shown]

# if $have_freetype ; then
# :
# else
# { { echo "$as_me:$LINENO: error: pangoxft Pango backend found but did not find freetype libraries" >&5
#echo "$as_me: error: pangoxft Pango backend found but did not find freetype libraries" >&2;}
# { (exit 1); exit 1; }; }
# fi

4. Now its over enjoy.

if u are using Debian go to synaptic manager and install all packages Related to libpango and libfreetype. Installing new version of pango may also solve this problem

Ctags: whats it? N how to use!

Well, whats the use of ctags. Ctags allows you to go to the function definition from function declaration even its not defined in same file. Suppose you have a program "add.c" and there is a function "calculate( )" in it. And "calculate( )" is defined some where else. If you have ctags you can go directly to definition by pointing the cursor to function and press "shift" + "]" . You can go back by pressing "ctrl" + "t".

First of all download this package, Exuberant Ctags. If you are using Debian you can get it from synaptic.

1.Open the terminal

2.Open the directory of the file[in this case dir where add.c resides. If in /home then cd home]

3.Type ctags -R on terminal or ctags -R[space]*

4.Open program add.c [as vi add.c]

5.Type :set tags=../../tags [if you run ctags -R outside the currrent directory, else just :set tags=./tags else :set tags=../tags as where you run "ctags -R"]

Its over.. enjoy..

[PS: This solved your problem? comment if it do or not. If this is not exactly your problem, please mail me. I can help you. randeep123@gmail.com . And If you found another way to solve it, please post it.. It will help a lot of people. Thank you]