LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install src.tar.gz file. (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-src-tar-gz-file-925458/)

mlnm 01-24-2012 09:16 AM

how to install src.tar.gz file.
 
hi, i am trying to install mysql workbench on rhel5,but i couldn't find right rpms for it and at last i downloaded linux generic src.tar.gz file ,i extracted it ,it created a directory,but i dont know how to install it.Please help......

MartinStrec 01-24-2012 09:50 AM

Do the following:

Code:

#unpack files
tar zxf yourifle.src.tg.gz

# go into indirectory where it has been unpacking
cd your-creted-directory

# configure
# for all parameters use 'configure --help'
./configure --prefix=/path/to/install/mysql

#compile files
make

#install it
make install

Be aware! You have to install many header files of different libraries if you want to compile the source. Minimum you have to install kernel headers.
Code:

yum install kernel-headers kernel-devel
You have to install C compiler
Code:

yum install gcc
While running ./configure it can stop with an error message. For example libxml is missing.
You have to install the missing library, in my example use
Code:

yum install libxml-headers libxml-devel

Good luck :-)

mlnm 01-24-2012 10:42 AM

after running ./configure ,it shows a missing libzip,but i dont have that rpms in repository,everything else went right.
Many thanks for your reply.

MartinStrec 01-24-2012 10:46 AM

libzip is a common library, try 'yum install libzip libzip-devel' (you have to install both)

MartinStrec 01-24-2012 10:48 AM

Probably you can install without libzip
'./configure .... --without-libzip'

if configure allows it and you needn't ZIP operations, I guess that is a feature, but it not a necessary library.


All times are GMT -5. The time now is 02:27 AM.