General :: Why Some Makefile Is Missing After ./configure
Sep 1, 2010
I have encountered some cases that the ./configure log says:
config.status: creating xxx/Makefile
but when make fails on:
...
make[2]: Entering directory xxx
make[2]: *** No rule to make target `all', Stop
...
and xxx/Makefile is absent in the disk. Why does it happened?
View 1 Replies
ADVERTISEMENT
May 17, 2011
I know how to manually writing a makefile for my project, but I am new in using makefile & configure file generation tools like automake to generate a makefile and a configure script file.
I had done research on tutorials for generating makefile and configure script file.
I know that I need to manually write two files (makefile.am and configure.in).
I use wxWidgets GUI library, libconfig library, and libpcap library to do my project.
wx-config is a tool that can return the library files and include directory for wxWidgets library.
When using g++ to compile my files, I need to add in this line "`/wxlib/bin/wx-config --version=2.9 --static=yes --unicode=yes --debug=yes --libs`"
How to add that line to the makefile.am file?
View 1 Replies
View Related
May 6, 2010
I want to install mysql50-server and when I write make install clean. I receive this error:
Makefile:34: *** missing separator. Stop.
Here is the code :
# New ports collection makefile for:MySQL-server
# Date created:Fri Apr 11 10:06:26 CET 2003
# Whom:Alex Dupre <sysadmin@alexdupre.com>
#
# $FreeBSD: ports/databases/mysql50-server/Makefile,v 1.251 2010/02/16 11:03:02 ale Exp $
#
PORTNAME?=mysql
PORTVERSION=5.0.90
PORTREVISION?=0
CATEGORIES=databases
MASTER_SITES=${MASTER_SITE_MYSQL}
MASTER_SITE_SUBDIR=MySQL-5.0
PKGNAMESUFFIX?=-server .....
".ifdef USE_MYSQL
.error You have 'USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again.
.endif"
View 14 Replies
View Related
May 31, 2010
I just downloaded slackware 13.1(x86) and i'm trying to compile ndiswrapper-1.56 using the slackbuild from slackbuils.org and i'm getting this error:
Code:
Makefile:535: /usr/src/linux-2.6.33.4/arch/i486/Makefile: No such file or directory
make[2]: *** No rule to make target `/usr/src/linux-2.6.33.4/arch/i486/Makefile'. Stop.
make[1]: *** [modules] Error 2
make: *** [all] Error 2
looks like the folder i486 doesn't exist
View 2 Replies
View Related
Apr 6, 2011
Yesterday, after I first installed Slackware 13.1 I had no trouble replacing the default wallpaper with a simple gradient. Very easy. Today, (after re-formatting the drive and re-installing the entire system because I messed around with a script and it wouldn't boot) I can't change it. I spent about an hour messing around with menus and settings trying to figure out how I did it, and eventually, as a last resort, turned to the help file. It tells me to choose Configure Desktop from pop-up menu when right-click on the background.
But Configure Desktop doesn't appear in the pop-up menu. (At least, not anymore it doesn't.) The help file also says to use the Control Center, but I can't find any trace of that either. I haven't the slightest idea why these are missing. Since I re-installed everything onto a freshly re-formatted drive, anything I played around with before shouldn't have any effect on the new installation. The problem is there both when I login as root and user. I really don't want to try re-installing everything again.
The only changes I've made to the system since the re-install is to edit /etc/inittab to replace the 3 in id:3:initdefault: with a 4, so I get a graphical login, and to edit /etc/rc.d/rc.inet1 to place an & at the end of the dhcpcd request which, according to the instructions I was following should put it in the background to speed up boot-time slightly. I haven't (knowingly) played around with anything that should affect KDE, except changing settings from within the KDE menus. I know it's probably going to be something very simple, and possibly obvious in retrospect, but I'm new to Linux and have no idea what I'm doing here.
View 1 Replies
View Related
Nov 24, 2010
I'm trying to run a "make" on a basic Makefile I created for a "Hello world" linux module, however if I run "make" or "make clean" it fails to work. I have to write more stuff in order to make it work (redundant stuff cause I define that stuff in the Makefile).
First, the Makefile:
Code:
obj-m := helloworld.o
KDIR=/lib/modules/$(shell uname -r)/build
PWD=$(shell pwd)
[Code]...
View 5 Replies
View Related
Feb 24, 2011
Is it possible to debug a makefile? In a bash script I can use "set -x" so that all variables are shown with their values. I am looking for such feature in makefile to see the variables and their values.
View 2 Replies
View Related
Aug 17, 2010
can anybody tell the use of make file in Nis server.
View 1 Replies
View Related
May 7, 2010
in directory a_dir, have a file named a_file.i can type "source a_file" under directory a_dir and execute successfully.but if i write the command to a Makefile under directory b_dir, the "source" function can't be executed well. it will generate some error message like this:
./a_file: line 1: setenv: command not found
./a_file: line 2: setenv: command not found
./a_file: line 3: setenv: command not found
./a_file: line 5: setenv: command not found
View 3 Replies
View Related
Dec 14, 2010
I want to write simple non recursive makefile, but I am not getting syntax of it. Please give me example with simple description. I had read docs, html's but I am not getting how that works please give simple example. consider I have following directory structure.
[Code]...
View 1 Replies
View Related
Mar 18, 2010
I need to write an else-if condition in a makefile, and though the format is posted on several websites, nothing seem to be working, andI get an error everytime. Could anybody please write a small example with an else-if conditional in a maekefile?
View 1 Replies
View Related
Oct 15, 2010
My project for today has been setting up a web server. I was given a old computer with a Pentium 4 processor; 512mb of RAM, and a 42gig hard drive.I was reading over some guides and I came across this guide. It is very self explanatory; however I am having issues with my configuration files within Apache and my firewall (shorewall).I am focusing on web security. I don't even want to web edit until I know it is "lock-down" secure. In Apache are some supposed settings called Server Tokens and SeverSignature. I can't locate these files in my apache2.conf unfortunately.Here is what is posted to me in the config:
Code:
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
[code]....
Then press Control-O and Control-X. Your firewall is now configured to only accept HTTP and SSH traffic.I couldn't get that line of code to run. I've been all over the Ubuntu forums, google, Apache 2.2...
View 5 Replies
View Related
Nov 4, 2010
I'm trying to install gazebo but I would like the general solution. When I type "./configure" I get the error: "could not find gdal_priv.h" or sometimes "could not find gdal library" But I have it on my computer. It is: usr/include/gdal/gdal_priv.h This means configure is not looking in the right place for this library. Where is the path stored, please? I tried reading the configure file but I could not find it. I tried to replace all instances of gdal_priv.h by gdal/gdal_priv.h but this did not work either. I tried adding /usr/include/gdal to all the env PATH_something_or_other I could see. how to tell to ./configure where to look for libraries. What file(s) should I edit? (I tried config.status, because it contains /usr/include stuff). The files I have are:
[code]...
View 2 Replies
View Related
Sep 20, 2009
I've been trying to figure out how to use make and makefile to compile and link some .cpp/.h. All i seem to find on google says to read the README for the software. But this is my own created c++ project. Im just looking for a simple makefile for my own .cpp/.h files( about 20 total).
I have tried using 2 different makefile "examples" as a template, but neither worked. I am getting error saying "file1.cpp: no newline character at end of file". or something to that degree.
View 5 Replies
View Related
Apr 12, 2011
I can find all kinds of information on calling a script from a makefile but not the other way around.I'm writing a VERY basic shell script, and I need to call a makefile located in a directory lower than the shell script but can't seem to figure it out../dir/make and ./dir/makefile don't work.
View 2 Replies
View Related
Nov 17, 2009
Does anyone know if it is possible to make rules in a Makefile that would work like this:
> make debug module
or
> make module debug
where module can be any module that has a specific rule in the Makefile.
The thing I have is a Makefile with different rules that I compile like this:
> make module
What I would like is to add an option so I can compile whichever module with debug-information just by adding a debug to the make command. The debug-information I know how to do, the problem is how to make the Makefile work...
View 2 Replies
View Related
Jun 1, 2011
How to compile single file in Linux environment using gcc. Now i dont know how to use make file to compile multiple file.
View 5 Replies
View Related
Jun 9, 2010
I would like to set run time library path in my makefile, so that my exe should search run time libraries in that path when executed. How to set this in makefile?
View 3 Replies
View Related
Apr 6, 2010
I want to install pgplot on ubuntu 9.10 but I have some errors after editing makefile in line 880
replaced "pndriv.o : ./png.h ./pngconf.h ./zlib.h ./zconf.h" by
"pndriv.o : /usr/local/include/png.h /usr/local/include/pngconf.h /usr/local/include/zlib.h /usr/local/include/zconf.h"
and running code "make" I get this error :
No rule to make target `/usr/local/include/png.h', needed by `pndriv.o'. Stop.
also I tried to uncomment this line got another error :
make: *** [pndriv.o] Error 1
and also replace "pndriv.o : ./png.h ./pngconf.h ./zlib.h ./zconf.h" by "pndrive.o : "
what should I do ?
View 14 Replies
View Related
Apr 28, 2010
I have this problem constantly and it tells me to install such and so a prog, but I do locate [prog] and it shows up in 80 places so it's obviously installed. I just have no clue how to attach the two or to set up anything in the ./config set up so it leaves me completely stuck. So what's the trick when it's already in there? Also..it says I just joined? in 2008.
View 5 Replies
View Related
Nov 23, 2010
I am new to creating make files. I have been able to create simple makefiles for those applications which do not involve database but am unable to create for the ones that do involve database.
That's how my make file looks
Code:
clean:
tar:
There is no error in the code because when I compile the code through the following command, it gives me no error
Code:
The error msg is:
Code:
Where am I going wrong? Am I not providing the correct mysql path?
View 4 Replies
View Related
Jun 3, 2011
I am new to Linux and I am trying to install a C program from source using Makefile. So I 've created a "hello world" program and then a Makefile to install it. Then I logged in as root and used
make install
The following error occurs:
make: execvp: /usr/bin: Permission denied
make: *** [install] Error 127
Here is the Makefile:
CC=gcc
CFLAGS=-c -Wall
PROGS = hello
INSTDIR = $(prefix)/usr/bin/
INSTMODE = 0755
INSTOWNER = root
INSTGROUP = root
all: $(PROGS)
$(PROGS): main.o
$(CC) main.o
main.o: main.c
$(CC) $(CFLAGS) main.c
install:$(PROGS)
$(INSTALL) $(INSTDIR)
$(INSTALL) $(INSTMODE) $(INSTOWNER) -o $(INSTGROUP) $(PROGS) $(INSTDIR)
clean:
rm -rf $(PROGS) *o $(PROGS)
So, where are the errors
View 3 Replies
View Related
Mar 1, 2011
As part of an assignment, our class was given a small set of c++ classes which are compiled using a makefile. As part of the assignment, I have created a namespace and saved in it a .cpp file. The functions, constants and typedefs from the namespace are now used in one of the original files, and so I added an <#include MyFile.cpp> to the file I modified, in addition to a using MyNamespace;
When I try to use the original makefile, the compiler gives a lot of errors about multiple definitions of every function in the namespace. What do I need to do to resolve this? Do I need to change the makefile or one of the files themselves? I am new to Linux programming and makesfiles.
View 2 Replies
View Related
Jun 3, 2010
I'm calling a function defined in "uart.c" from "main.c"
But on "make" using cygwin bash, it's giving an error:"Unreferenced function"...
Pls help me to overcome this problem.
If i'm putting the definition of that function in "main.c" itself, its working.
So pls tell me how to write the make file for it?
View 4 Replies
View Related
Apr 28, 2010
I have ~200 c files in my makefile[$(SRCS)], and it compiles all of the files using a single gcc command. So each time I make a change in one c file, it ends up re-compiling all the files, then linking to make the
binary. How can I break out the compilation into individual gcc commands for each c file, so that make checks the timestamp and accordingly compiles only the modified files.
My current Makefile looks like this.
clean:
View 5 Replies
View Related
Jan 4, 2010
I'm installing a package but that package doesn't has "makeFile" file, it only has "makefile.am" and "makefile.in". therefore when ever i use the "make" command i get: "make: *** No targets specified and no makefile found. Stop."
View 2 Replies
View Related
Oct 30, 2010
I am using opensuse 11.3 on a computer with limited internet connectivity.Can anyone provide a list of essential libraries which would be enough for most applications. I get errors due to library missing while running configure script.
View 1 Replies
View Related
Aug 4, 2011
./configure script fails to configure libsf. Please check the following last few lines of configure script error.
But find command shows the following;
It seems the file libdb does exist. man dbopen displays man page for dbopen. I also tried to ln -s /usr/lib/libdb.a and libdb.so /lib dir but all were in vain.
View 6 Replies
View Related
Jul 24, 2011
I've AMD64 system with Ubuntu 11.04 installed. It's been rough ride for me to install oracle-xe-universal. I've already spent more than 2 days on this. Still unsuccessful.
1) First I downloaded the packages libaio_0.3.104-1_i386.deb and oracle-xe-universal_10.2.0.1-1.1_i386.deb
2) Then I ran
sudo apt-get install bc (ran fine)
sudo dpkg -i --force-architecture libaio_0.3.104-1_i386.deb (ran fine)
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb
(gave me dependency error for libc6 (>= 2.3.2), I modified the control file to remove dependency and rebuilt the package) (now worked fine) Oracle xe is now installed. Then I tried to start the DB it started but it's HTTP client never started. So I decided to uninstall the oracle-xe=universal. None of the sudo apt-get remove oracle-xe-universal command's didn't worked for me. So i went for manual uninstallation directions as per oracle link.
I ran the following command-
--Manually uninstalling Oracle 10g--
sudo rm -rf /usr/lib/oracle /etc/oratab /etc/init.d/oracle-xe /etc/sysconfig/oracle-xe /usr/share/doc/oracle_xe /usr/share/doc/oracle_xe_client
Then I again ran the following command to install oracle-xe
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.0_i386.deb
See below what I got as the output-
rocky@ubuntu:~/git/mygit/edas2/libaio$ sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb
dpkg: warning: overriding problem because --force enabled:
package architecture (i386) does not match system (amd64)
[code]....
Even in applications menu I don't see the if oracle has been installed. So i conclude first time installation was ok but somehow http client didn't worked. After manual uninstallation, second installation didn't even loaded/installed the oracle-xe in init.d directory.
View 1 Replies
View Related
May 7, 2011
i m trying to install glib on my pc but i was always encounter a probelem in make. it says "No Target Specified No Makefile Found Stop"
[code]...
View 14 Replies
View Related