web of unni

About | GuestBook | Add WebOfUnni to Google ToolBar

Download Day

April 28, 2008

Installing Mysql from source in Ubuntu

Filed under: error, installation, mysql, ubuntu — unni @ 9:47 am

I was doing a newsletter project for my company for that i need a Web server with PHP/Mysql support, so i selected lighttpd with PHP/Mysql. I got stuck at several points while installing Mysql. I am posting the error that i encountered while installing Mysql in my ubuntu machine.

I used the Mysql source for Database installation. Downloaded the source file from :

http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.51b.tar.gz/from/http://mysql.mirror.rafal.ca/

Then configured with following command :

./configure –prefix=/usr/unni/mysql5 –with-unix-socket-path=/tmp/mysql.sock

But it ended with an error :

checking for termcap functions library… configure: error: No curses/termcap library found

Google gave me a solution at :

http://darpanetwork.blogspot.com/2008/02/compiling-mysql-on-ubuntu-linux.html

So i installed libncurses5-dev and fixed that error :

#apt-get install libncurses5-dev

Then configuration went successfully, but the make command gave another error :

====================================
g++ -DDEFAULT_BASEDIR=\”/usr/unni/mysql5\” -DDATADIR=”\”/usr/unni/mysql5/var\”" -DDEFAULT_CHARSET_HOME=”\”/usr/unni/mysql5\”" -DSHAREDIR=”\”/usr/unni/mysql5/share/mysql\”" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR=”\”/usr/unni/mysql5/etc\”" -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I. -O -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -c -o my_new.o my_new.cc
../depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] Error 127
make[2]: Leaving directory `/usr/unni/mysql-5.0.51/mysys’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/unni/mysql-5.0.51′
make: *** [all] Error 2

==============================================

This time i figured out the error as the absence of basic compilers, so i installed Ubuntu build-essential, that fixed that error.

# apt-get install build-essential

But i got another error from make command :

==============================================

g++ -DDEFAULT_BASEDIR=\”/usr/unni/mysql5\” -DDATADIR=”\”/usr/unni/mysql5/var\”" -DDEFAULT_CHARSET_HOME=”\”/usr/unni/mysql5\”" -DSHAREDIR=”\”/usr/unni/mysql5/share/mysql\”" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR=”\”/usr/unni/mysql5/etc\”" -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I. -O -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -c -o my_new.o my_new.cc
../include/my_global.h:987: error: redeclaration of C++ built-in type ‘bool’
make[2]: *** [my_new.o] Error 1
make[2]: Leaving directory `/usr/unni/mysql-5.0.51/mysys’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/unni/mysql-5.0.51′
make: *** [all] Error 2

===================================================

Mysql forum gave me the solution :

This happened because, first the make command used the native C compiler since there was no g++ compiler ( configuration command set the compiler as gcc, because that was the available compiler ). After that i installed the g++ compiler so the next make used the g++ to compile the C code as C++ .

Solution :

Run the configuration command again followed by make :

1. ./configure –prefix=/usr/unni/mysql5 –with-unix-socket-path=/tmp/mysql.sock

2. make

3. make install

Thats done :-)

April 26, 2008

amarok installation in Ubuntu

Filed under: amarok, installation, mp3, ubuntu — unni @ 5:57 am

amarok logo Amarok is one my favorite audio player in Linux. It is stable and provides handful of features, it act as a audio player, podcast client, radio receiver and much more ………..

I tried amarok in Linux mint, it is the default player in Linux Mint, so i like to install it in Ubuntu, which is my default Operating system :-)

The installation was so easy, need of only one command

# apt-get install amarok

But after the installation i started amaroK and opened one of the mp3 song from my list, but it showed a pop up box saying “Mp3 support is not enabled”.

After some search in the forum i got the solution as to install “libxine-extracodecs”, perfect it solved it

# apt-get install libxine-extracodecs

So i started hearing my songs $$$$$$$$ :-)

Links :

http://ubuntuforums.org/showthread.php?t=513541

http://amarok.kde.org/

December 24, 2007

Installing Webmin using rpm

Filed under: installation, rpm, webmin — unni @ 8:21 pm

1. login to the vps as root

2. download webmin:

wget http://prdownloads.sourceforge.net/webadmin/webmin-1.390-1.noarch.rpm

3. install webmin:

rpm gioco baccarat gratisgiochi slotsdownload roulette gratiscasino italiani con bonuscasino games progiochi blackjack in lineagioco kenocasinos gamesgambling casinogiocare gratis casinoblackjack in lineavideo poker strategymetodi per vincere alla roulettesexy casino onlinegiochi video pokervideo poker per pccasino sanremo onlinevideo poker gamegiochi jack black in lineagiochi casino flashgiochi casino online gratiseurobarre casino on netgioco in lineagioco pc casinoclub player casino888 casinogioco video poker gratis,video poker,video poker on linecasino on line con bonuscasino on line gamblingplay blackjack onlineroulette game downloadcasino 10 euro gratiscasino paypalcasino online sicurisistemi roulettedownload giochi casino,giochi on line casino,giochi casinogiochi on line casinoslots on linegioco gratuitoprofessional video pokercasino virtuale,giochi casino denaro virtuale,casino virtuale gratisvideo poker online gratisi migliori casino onlineroulette russagold casinowww casino online comsoftware roulettegioco keno in lineavideo poker machinebetandwin casino -vi webmin*rpm

4. remove webmin rpm:

rm -f webmin*rpm

Thats all ………….. :-)

December 22, 2007

Installing Ioncube loader

Filed under: installation, ioncube — unni @ 5:37 am

Here i will explain the installation steps for installing Ioncube loader

ioncube logo

1. Download the loader from http://www.ioncube.com/loaders.php
2. Unzip it tar -zxvf loader-file.tar.gz
3. cd ioncube
4. Move ioncube-encoded-file.php and ioncube-loader-helper.php to the document root of your http serve.
5. Move the directory ioncube to /usr/local/
6. open the php.ini file.
7 Add the line zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.0.so
8 save php.ini and restart http server.
9. Access ioncube-encoded-file.php through browser you will get a success message if everything is ok.

Created and maintained by Unnikrishnan
Hosted by Host cats