LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2011, 12:07 PM   #1
KevinsL
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
Question Help! how to install a "makefile" ???


Hi, i'm new in linux! i'm using CentOS 5
i want to install VHCS -> vhcs.net

it comes with a Makefile and Makefile.centos5
how do i install that???

EDIT:

i tryed: make install
Code:
[root@localhost vhcs-2.4.8]# make install
cd ./tools && make install
make[1]: Entrando no diretório `/root/Desktop/vhcs-2.4.8/tools'
cd ./build && make install 
make[2]: Entrando no diretório `/root/Desktop/vhcs-2.4.8/tools/build'
/usr/bin/install -m 0755 -d /usr/sbin/
/usr/bin/install -m 0755 ./vhcs2-mkdirs.pl /usr/sbin
make[2]: Saindo do diretório `/root/Desktop/vhcs-2.4.8/tools/build'
cd ./daemon && make vhcs2_daemon
make[2]: Entrando no diretório `/root/Desktop/vhcs-2.4.8/tools/daemon'
gcc -O2 -ansi -Wall -Wstrict-prototypes -pedantic -c -o vhcs_daemon.o vhcs_daemon.c
make[2]: gcc: Comando não encontrado
make[2]: ** [vhcs_daemon.o] Erro 127
make[2]: Saindo do diretório `/root/Desktop/vhcs-2.4.8/tools/daemon'
make[1]: ** [install] Erro 2
make[1]: Saindo do diretório `/root/Desktop/vhcs-2.4.8/tools'
make: ** [install] Erro 2
it gave a error
some parts are in portuguese - brazil

Last edited by KevinsL; 03-31-2011 at 12:23 PM.
 
Old 03-31-2011, 12:22 PM   #2
jcalzare
Member
 
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
You may need to configure it first. Go into the source directory (where the makefile is):

./configure
make
make install
 
Old 03-31-2011, 12:25 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Hi and welcome to LinuxQuestions! This is not a standard installation where you have to run ./configure, make and make install.

First you should check the INSTALL file inside the vhcs-2.4.8/docs directory and follow instructions carefully. It looks like you have to edit the file configs/vhcs2.conf to adapt the installation to your system. Then return to the main source directory, type make install and press enter. According to the INSTALL file, this should create a setup directory into the temporary folder /tmp. Then - following instructions - you have to run the actual setup to complete the installation.

Remember, this is not a standard installation method. Usually building a software from source is more straightforward, especially when you've clear the aim of the three main installation steps (as cited above).
 
1 members found this post helpful.
Old 03-31-2011, 12:29 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Just seen the editing to your post. The error you get simply states that your system lacks the C compiler (gcc: Comando não encontrado) and maybe some other development tool. You should first install it. From a terminal (as root) you can do:
Code:
yum groupinstall "Development Tools"
to install the base development environment, among which you can find gcc (the GNU C compiler). Please, don't forget to check the INSTALL file as mentioned in my previous post.
 
1 members found this post helpful.
Old 03-31-2011, 12:53 PM   #5
KevinsL
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
After
Code:
yum groupinstall "Development Tools"
it installed
thanks!
 
Old 03-31-2011, 01:12 PM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You're welcome!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I convert makefile argument "toupper" (and "tolower")? daat99 Programming 4 12-04-2010 11:49 AM
Adding a ".c" source code file name to the Kernel's Makefile. RossR Linux - Kernel 2 05-30-2009 06:28 AM
Makefile issue: "Makefile.src: File not found" m3rkury Linux - Software 1 02-22-2007 11:15 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 03:32 PM
"perl Makefile.PL" complains about cc & gcc (self solved tip) Raptor Ramjet Slackware 2 09-13-2004 03:24 PM


All times are GMT -5. The time now is 06:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration