Building Applications from Source: "no rule to make target ..."
-
Hello,
I am trying to follow along with the CompTIA Linux+ (XK0-005) and I am getting stuck on "Building Applications from Source," lesson. I have downloaded the tar from the website and successfully extracted it. The instructor then says I can type "make" just to list the files specific to each architecture but that returns nothing. However, runningsteelcoyote@coyote-ubuntu-vm:~/john-1.9.0-jumbo-1/src$ uname -a Linux coyote-ubuntu-vm 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
So I know my architecture is x86-64. and I see it listed in the list of files. So then I try:
steelcoyote@coyote-ubuntu-vm:~/john-1.9.0-jumbo-1/src$ make clean linux-x86-64 make: *** No rule to make target 'clean'. Stop.
So i'm searching on my own but I figured I'd reach out here and ask as well.
-
@Kapil-Renninger,
In the/~/john-1.9.0-jumbo-1/src
please verify thatMakefile
is listed there by runningls
. With it showing nothing it makes me wonder if there is something that is different when you typedmake.
The only thing I see that is different from your line and Don's is that you have thejohn-1.9.0-jumbo-1
and Don's terminal showsjohn 1.9.0
-
Thanks for the response. Yeah I downloaded the jumbo version. THe insturctor said it was just a larger database. I'll retry with the other version since I'm having trouble with this.
Make file was indeed in the list but you actually have to run a slightly different command.
So these are the make files listed. The only one I can run is Makefile.legacy by typing
make -f Makefile.legacy
But of course it says legacy is unsupported. And I run into a problem trying to run it. It then says op
In file included from md5crypt_long_fmt.c:24: md5.h:25:10: fatal error: openssl/md5.h: No such file or directory 25 | #include <openssl/md5.h> | ^~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile.legacy:1984: md5crypt_long_fmt.o] Error 1 make[1]: Leaving directory '/home/steelcoyote/john-1.9.0-jumbo-1/src' make: *** [Makefile.legacy:442: linux-x86-64] Error 2
But I checked and openssl is installed.
Like I said I'll try again with the the regular file since I figured out how to run the code. I just figured I'd post this follow up for anyone else trying to figure out why "make" won't run.
-
Update. Downloading and building for the regular source works as intended. I do not understand why the "jumbo" is different.
-
@Kapil-Renninger,
This to me is the frustration with Linux things...It's great until things like this. :)