LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-24-2008, 10:44 AM   #1
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Rep: Reputation: 17
Question *** No targets specified and no makefile found


when i try to compile a software from the source files(tar.gz files)following the steps mentioned here - (
http://www.linuxquestions.org/questi...ograms.-45094/ )....the following error
"*** No targets specified and no makefile found " shows up as i type the command "make".

i have tried many reliable sources and all yield this same error message.
After configuring(with ./configure) the source directory...no makefile is created...instead makefile.in and other folders and files are present in the source folder.
i also have installed the build-essential package in my ubuntu 8.04
but nothing worked the right way...
what should i do now??
 
Old 09-24-2008, 10:47 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
If no Makefile is created by the configure script, then the configure script most likely failed.
 
Old 09-24-2008, 10:54 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,661

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by ritam_bkp View Post
when i try to compile a software from the source files(tar.gz files)following the steps mentioned here - (
http://www.linuxquestions.org/questi...ograms.-45094/ )....the following error
"*** No targets specified and no makefile found " shows up as i type the command "make".

i have tried many reliable sources and all yield this same error message.
After configuring(with ./configure) the source directory...no makefile is created...instead makefile.in and other folders and files are present in the source folder.
i also have installed the build-essential package in my ubuntu 8.04
but nothing worked the right way...
what should i do now??
You don't say what you're trying to install. Did you look at the instructions that came with it? Sometimes, you've got to run a cmake command, or configure something else, in order to get the makefile generated.

Since you don't say what you're trying to install, it's hard to help. A good first step would be for you to read the docs that came with the program, or on their website, and follow the directions.
 
Old 09-24-2008, 11:33 AM   #4
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Original Poster
Rep: Reputation: 17
thanx weibullguy and TB0ne for ur suggestions...
the "./configure" command did not return any errors...
it extracted some files into the source folder such as makefile.in, makefile.am etc.....
but the required makefile was missing

i tried to install codeblocks 8.02 (it is a C compiler for linux)
from the source ... as it was unavailable in ubuntu repositories..
and it had no binary packages(.deb files for debian based OS) available on the net

not only codeblocks...i also failed to install opera by tar.gz files....
at last i had to install the .deb package of opera browser
 
Old 09-24-2008, 11:49 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
by chance did you do this common mistake
Example:
Code:
[JKV@newpc celestia]$ ./configure --options -- more options 
[JKV@newpc celestia]$ su -
Password: your password
[root@newpc ~]#
you are now in the root home folder and not in the build folder ,to fix this
Code:
[root@newpc ~]#cd /src/CelestiaMasterFile/celestia
[root@newpc celestia]#
 
Old 09-24-2008, 01:18 PM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Makefile.in and Makefile.am are not created by the configure script, they come as part of the tarball. The Makefile.am is used by automake to create Makefile.in. Makefile.in is then used by the configure script to create the Makefile. If the Makefile wasn't created when you executed the configure script, most likely the configure script failed. You should look in config.log for details.

It's possible that you somehow ended up in a different directory after executing the configure script as John VV suggested. However, I don't understand why you would su to execute make.

Anyway, I presume you are trying to install Code::Blocks. If so, then why not use a binary from their website --> http://www.codeblocks.org/downloads/binaries?
 
Old 09-24-2008, 01:36 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
it is a common mistake to do "make" as root and not just" make install ".
i think he might have been the wrong directory when "configure" was ran .
-----------
ritam_bkp
have a read through this generic manual
http://rute.2038bug.com/rute.html.gz
and for building source
http://rute.2038bug.com/node27.html.gz
 
Old 09-24-2008, 03:20 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
CodeBlocks is a c++ IDE built with the wx widget set.

Build instructions are in the file BUILD.

Regards
 
Old 09-25-2008, 10:55 AM   #9
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Original Poster
Rep: Reputation: 17
thanx a lot guys...
i was overlooking a configuration error...
which inhibited the generation of the makefile..

while i typed
pritam@pritam-desktop:~/codeblocks-8.02$./configure

at the last lines these configuration error were returned...

configure: error:
wxWidgets must be installed on your system.

Please check that wx-config is in path, the directory
where wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs'command)
is in LD_LIBRARY_PATH or equivalent variable and
wxWindows version is 2.8.0 or above.


now ..
how shall i fix these dependencies??
 
Old 09-25-2008, 11:16 AM   #10
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Told ya the configure script failed.

Install wxWidgets to clear that error. Because wx-config is used during compile time, not runtime, and because you're using a binary distribution, the wx-config file may be in the wxWidget dev package provided by your distribution.
 
Old 09-25-2008, 01:13 PM   #11
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Original Poster
Rep: Reputation: 17
thanx friends...
u all helped me out of this trouble..
i have successfully installed the dependencies..and finally the codeblocks..

but while i try to run it this pops up :

pritam@pritam-desktop:~$ codeblocks
codeblocks: error while loading shared libraries: libcodeblocks.so.0: cannot open shared object file: No such file or directory


..
whats the solution to dis???
did i install codeblocks correctly??
 
Old 09-25-2008, 01:19 PM   #12
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Original Poster
Rep: Reputation: 17
ok..
i have found a solution to this
http://forums.codeblocks.org/index.php?topic=6918.msg52939

god bless u all
 
Old 09-26-2008, 03:22 AM   #13
pratibhasri
LQ Newbie
 
Registered: Sep 2008
Posts: 9

Rep: Reputation: 0
x11 library

hello all
i'm tryimg to install QT on opensuse11.0.
after configure when i do make it is showing x11 libraries not found.
i tried to install the x11 libraries but the libraries are also showing dependendy on some other library.
where can i get a complete package for x11 libraries
 
Old 09-26-2008, 08:20 AM   #14
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Original Poster
Rep: Reputation: 17
see this page...
http://www.x.org/wiki/


X is best provided with ur OS...
i think u have messed up while installing SUSE linux

in the website x.org/wiki the follwing is clearly written -
Getting X

The best place to get X is from your operating system or distribution vendor. X.Org currently provides no binaries.

There are many Mirrors from which you can download source code to the X Window System. If you would like to be a mirror, please send mail to mirror_admin@x.org .

Development snapshots are currently on hiatus; most modules now update slowly enough that frequent snapshots aren't needed.
 
Old 09-26-2008, 08:21 AM   #15
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Original Poster
Rep: Reputation: 17
though u can get the mirrors of its source files...
 
  


Reply



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
Makefile: using targets to declare dependent vars blackcat_73 Linux - Software 0 11-21-2006 03:39 AM
makefile targets dand Programming 1 07-11-2005 03:28 PM
tinkering with dkms: make error no targets. Makefile issue? Emmanuel_uk Linux - Newbie 1 06-03-2005 01:26 AM
"no targets specified and no makefile found" liljhand Linux - Software 9 01-01-2005 12:54 PM
[makefile] Do header files need to be set targets? chuanyung Programming 2 03-11-2004 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:32 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
Open Source Consulting | Domain Registration