LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Make command dosne't work (https://www.linuxquestions.org/questions/linux-newbie-8/make-command-dosnet-work-410248/)

Penguin of Wonder 01-31-2006 10:21 PM

Make command dosne't work [solved]
 
I'm not a total linux newbie, but this one stumps me everytime. Everytime I try to install a tarball, I unpack it (tar -xvjf ...) and everything goes ok. I cd in the directory it creates and run ./configure. Again everything goes ok, it dosen't error out or anything. So then I continue on to the make command. But everytime I try this it tells me "make: command not found." Why? What am I doing wrong? Do I need to cd into another directory before I run the make command?

I'm currently trying to install gettext because its required for glib which is needed by Ajunta so I can comple C++, on my Kubuntu system.

nitinatindore 01-31-2006 10:30 PM

Install development packages for your distribution, which contains necessary utilities required for compiling any program.

paragn 01-31-2006 10:33 PM

hi,
Normal procesure to install package is
1)./configure
2)make
3)make install
but if you are getting error while doing make then this is because of (what i found on googling)

The error is caused when the system you are installing on does not have the program called "make". It is recommended that you install make as well as a C compiler ("cc" or "gcc") for the installation of Interchange.

Penguin of Wonder 01-31-2006 10:57 PM

I already have g++ installed. Is there another one I need?

Aren't these basic compilers needed just install linux anyway? How does apt-get install things if I can't? Dosen't it just automate the process?

Penguin of Wonder 01-31-2006 11:04 PM

Well there ya go, I didn't have the package "make" installed. That still leaves me wondering though why that isn't one of the "core" packages that should be installed on a linux system. Do the makers of Ubuntu just assume people don't install things using tarballs or what?

paragn 01-31-2006 11:06 PM

hi,
what is the output of rpm -qf /usr/bin/make on your system? also is /usr/bin in you PATH? show your echo $PATH output

Penguin of Wonder 02-01-2006 12:15 AM

I fixed the make problem, it works now. But here is the ouput you requested anyway.

After running echo $PATH

Code:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
When I ran rpm -qf /usr/bin/make, it gave me this:

Code:

bash: rpm: command not found
Hope that means more to you than it does to me ;)

Padma 02-01-2006 10:18 AM

It means plenty. (K)Ubuntu is a debian-based distro, not an rpm-based one, so rpm commands will obviously not work. ;)

As to why make wasn't installed automatically, yeah, they probably figure that if you are going to install tarballs, that you will have enough knowledge to make sure 'make' is there. After all, installing from tarball, for *most* deb- and rpm-based distros, is the "wrong" way to do things. :) (Okay, it's not "wrong", I do it myself. But usually the best choice is to use the distro's package manager (apt, rpm, etc.) to retrieve the distro-specific version of the app, as well as any necessary dependencies. :))

Nylex 02-01-2006 10:31 AM

Quote:

Originally Posted by Penguin of Wonder
Aren't these basic compilers needed just install linux anyway? How does apt-get install things if I can't? Dosen't it just automate the process?

You need compilers and other development tools to build packages from source. APT and most other package managers download and install pre-built binaries, hence you don't need the development tools. Gentoo's Portage system is one where development tools are needed, because it essentially gets the source and builds it for you (I don't know specifics of how it works, but I did use Gentoo once for a while :)).

Penguin of Wonder 02-01-2006 01:43 PM

Yeah, i'm still trying to figure gentoo out, its through Gentoo that I had made the assumption all these compiliers and such we're needed to install linux with, because Gentoo needed them.


All times are GMT -5. The time now is 11:39 PM.