User Panel
Posted: 8/27/2005 7:34:12 PM EDT
I'm trying to get a USB phone adapter working in linux. I'm fairly new at this so be patient.
I downloaded all the files and began following the installation instructions. I ran the ./configure command with no problems. The next command says to type in "make" but when I do this I get the following error [root@localhost usbb2k-api]# make make: *** No rule to make target `../configure.in', needed by `Makefile.in'. Stop. Anyone have any clue what this means? |
|
I'm quickly finding that out :) At least now I'm not buying from the devil :) |
|
|
I just learned about the "make" and "make install" commands the other night, so I might not be the greatest help.
When you use MAKE are you in the directoyr of the files you want to install? Thats the problem I had |
|
I am in the directory of the files that I am trying to install.
Make install will be my next command after make. |
|
Do you have the lastest GCC and GNU Make installed ?
Does the program require autoconf or any libraries, etc according to the README, CONFIG, INSTALL files ? |
|
All 'make' does is execute the contents
of the 'makefile' file that is located in the current directory. You need to do an 'ls' and verify that there is a 'makefile' in the current directory. eta: I'm retarded. Of course there is a makefile there, it is bitching about a missing target. I guess that the better question is: are you executing the top- level 'makefile' (e.g. are you is one of the subdirectories)? |
|
You need to run the following commands:
1. Change directory to the directory where you untarred the source. 2. type './configure' (minus quotes) 3. then, type 'make' 4. then type 'make install' The configure script is necessary to generate a file for make to use |
|
It looks like either there is a bug in their configuration script or you need to include an argument with the make command to tell it what you want to make.
-Foxxz |
|
[root@localhost usbb2k-api]# make dep make: *** No rule to make target `dep'. Stop. [root@localhost usbb2k-api]# make clean make: *** No rule to make target `clean'. Stop. [root@localhost usbb2k-api]# make install make: *** No rule to make target `install'. Stop. [root@localhost usbb2k-api]# |
|
|
[root@localhost usbb2k-api]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for usb_init in -lusb... yes Usb lib found checking for pthread_create in -lpthread... yes pthread lib found checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes configure: creating ./config.status config.status: creating Makefile config.status: error: cannot find input file: Makefile.in [root@localhost usbb2k-api]# |
|
|
I did do a SU |
|
|
Did configure finish with zero errors or warnings?
Are you in the top level directory? I ask because it says ../configure.in Did you read all of the instrustions that came with the package? README, INSTALL, etc.? eta; oops.. beat me.... you are missing Makefile.in eta2; furthermore, you should login as root when doing system things. ppl will tell you to avoid root, but it is a pain trying to do things as a user... ps, ls, netstat, ifconfig, and such all do not work well to figure out root problems as a user. furthermore, your path is all screwed up if you try to play root as a user. su is not equal to logging in as root. it is some sort of phony environment, and some programs will act odd, and things you try to do will not work quite right since you are more or less still a user only with root privledges. Even 'su -' is not good enough. |
|
The readme is short and didnt do me any good.
Here are the contents
I am in the top level DIR |
|
|
Hrmmm, I'll have to see what happened to it |
|
|
try re-uncompressing the archive.
You can look for it with the universal-just-tell-my-where-the-eff-it-is command; find . | grep Makefile.in |
|
I think it would probably be easiest to start again from the vary beginning. Here is what I type to get the files.
then I get the following
Then I do a SU Then I try to follow the readme file
|
|||
|
After the su I type ./autoconf.sh and get the following
So then I do a chmod -c 7777 *.* which then allows me to run the ./autoconf command
|
||
|
after running the ./autoconf.sh command I get a INSTALL file. Here is the contents
|
|
|
thats when I run the ./configure command and get
|
|
|
Oh, you're compiling from CVS, not a tarball (.tar.gz), that's a somewhat different animal.
Just to repeat myself. do not use 'su', just login as root! that is probably why automake.sh is giving you the permission denied error. Try that and see what happenes, if it still does not work, then continue below. Like you did before, start over from scratch with a fresh download of the source tree then do something along the lines of this... run autoconf, then automake, then ./configure, then make autoconf and automake are not exact commands, it may be .sh or such. You can type autoc then hit the TAB key and it will auto complete if possible, same goes for autom. It has been a while since I did this kind of thing, you may have to run automake then autoconf. |
|
I still get the Permission Denied error when logged in as root I will continue with your next suggestion and see what happens |
|
|
after ./autoconf.sh I am unable to perform a ./automake because its not there.
|
|
That worked, I got the following [root@localhost usbb2k-api]# automake src/Makefile.am:2: CFLAGS was already defined in condition TRUE, which includes condition DEBUG ... configure.in:10: ... `CFLAGS' previously defined here src/Makefile.am:2: `CFLAGS' is a user variable, you should not override it; src/Makefile.am:2: use `AM_CFLAGS' instead. tools/Makefile.am:5: blank line following trailing backslash [root@localhost usbb2k-api]# |
|
|
Can you proceed?
If not, try going back, not chmod'ding the autooconf.sh, and just running autoconf all by itself (no ./) |
|
thanks again for working with me on this. I really appreciate it. I downloaded a fresh copy again and ran autoconf by itself and get the following. [schapman43@localhost ~]$ autoconf autoconf: no input file |
|
|
hrmmmm, I was just looking at the contents of the autoconf.sh file and found the following
#!/bin/sh aclocal autoconf automake --add-missing I wonder what hte --add missing thing is all about. |
|
from `man automake` --add-missing Automake requires certain common files to exist in certain situ- ations; for instance config.guess is required if configure.in runs AC_CANONICAL_HOST. Automake is distributed with several of these files; this option will cause the missing ones to be auto- matically added to the package, whenever possible. In general if Automake tells you a file is missing, try using this option. By default Automake tries to make a symbolic link pointing to its own copy of the missing file; this can be changed with --copy. |
|
|
Ummm which phone adapter are you trying to install?
What distro are you running? |
|
Sign up for the ARFCOM weekly newsletter and be entered to win a free ARFCOM membership. One new winner* is announced every week!
You will receive an email every Friday morning featuring the latest chatter from the hottest topics, breaking news surrounding legislation, as well as exclusive deals only available to ARFCOM email subscribers.
AR15.COM is the world's largest firearm community and is a gathering place for firearm enthusiasts of all types.
From hunters and military members, to competition shooters and general firearm enthusiasts, we welcome anyone who values and respects the way of the firearm.
Subscribe to our monthly Newsletter to receive firearm news, product discounts from your favorite Industry Partners, and more.
Copyright © 1996-2024 AR15.COM LLC. All Rights Reserved.
Any use of this content without express written consent is prohibited.
AR15.Com reserves the right to overwrite or replace any affiliate, commercial, or monetizable links, posted by users, with our own.