LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-02-2009, 05:02 PM   #1
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 649

Rep: Reputation: 30
Question What is: ./configure


I am trying to install HPLIP 3.9.6b onto my MEPIS 8 system. I just bought a new HP Officejet j6480 All-In-One.

I am using the following website as a guide:

http://hplipopensource.com/hplip-web...ros/mepis.html

Look at Step 4.

As both root and regular user, I input this into console:

./configure --with-hpppddir=/usr/share/ppd/HP --prefix=/usr --enable-qt4 --enable-doc-build --enable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-policykit --disable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build

As both root and regular user, I received this from console:

bash: ./configure: No such file or directory

Why am I getting that message and what can I do?

I am stuck.

I appreciate your help.
 
Old 08-02-2009, 05:19 PM   #2
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
I can't tell you why you don't seem to have it, but it's what it sounds like - only it has to do with compiling programs from source. You run ./configure in the directory the source is in, then make and optionally make check, and then make install ... normally.
The only thing I could tell you is make sure you're in the right directory.

Last edited by joeBuffer; 08-02-2009 at 05:24 PM.
 
Old 08-02-2009, 05:20 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Did you do this bit first:
Quote:
Originally Posted by The Instructions
D. Change your working directory to the hplip-3.9.6b directory.

Example:

Code:
cd hplip-3.9.6b
It won't work unless you are inside the new directory. Make sure you run ./configure and make as your user and make install as your root account.
 
Old 08-02-2009, 05:25 PM   #4
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
Normally, it's done how they have it on their site ... you don't do anything as root or using su or sudo (as far as ./configure, make, make install) except the make install. I have lag, or something ... I didn't see XavierP's post until I wrote this one ...

Last edited by joeBuffer; 08-02-2009 at 05:29 PM.
 
Old 08-02-2009, 06:21 PM   #5
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 649

Original Poster
Rep: Reputation: 30
I tried changing my directory as described in Step 3, but ran into problems.

I put the hplip stuff in the home of my main user account:

/home/cat2007/hplip-3.9.6b

Then I tried to cd:

cat2007@mepis1:~$ cd ~/home/cat2007/hplip-3.9.6b

But received this:

bash: cd: /home/cat2007/home/cat2007/hplip-3.9.6b: No such file or directory

Please note I already "unziped" the file via Konquer, not console.

What am I dong incorrectly?
 
Old 08-02-2009, 10:18 PM   #6
z-vet
Member
 
Registered: Aug 2004
Location: Israel
Distribution: LMDE 5
Posts: 271

Rep: Reputation: 34
You're inside your homedir already. Do 'cd hplip-3.9.6b', no need to enter full path.
PS: why you need to compile it, there's no hplip in Mepis' repos?

Last edited by z-vet; 08-02-2009 at 10:20 PM.
 
Old 08-03-2009, 12:53 AM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by MBA Whore View Post
cat2007@mepis1:~$ cd ~/home/cat2007/hplip-3.9.6b
That is your mistake! The symbol "~" is an abbreviaton for the home directory of the current user. Since cat2007 appears to be the current user in your example, then you have tried to cd into
Code:
/home/cat2007/home/cat2007
which, of course, doesn't exist.
You need to do this:
Code:
cd /home/cat2007/hplip-3.9.6b
or this:
Code:
cd ~/hplip-3.9.6b
but definitely not both.
cheers,
jdk

Last edited by jdkaye; 08-03-2009 at 12:54 AM.
 
Old 08-03-2009, 01:35 AM   #8
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Please do this and post back the results:
Quote:
1. Make sure you're in a console Window.
It does *not* matter if you're a regular user or "root" (so just stay "regular user")

2. Verify the file exists where you think it does:

cd /home/cat2007/hplip-3.9.6b
ls -l hplip-3.9.6b.tar.gz
<= You should be able to copy/paste these commands directly into your console Window
You should *not* get a "file not found" message when you type the "ls -l" command

3. Verify whether your OS is 32- or 64-bit:

uname -m
<= This should print something like "i686".
It should *not* print anything suggesting 64-bit (unless, of course, you *have* a 64-bit CPU)

4. Assuming 32-bit (or assuming you want to use the 32-bit driver on a 64-bit OS: which, I assume, is perfectly OK)...
... then run "configure":

./configure --with-hpppddir=/usr/share/ppd/HP --prefix=/usr --enable-qt4 --enable-doc-build --enable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-policykit --disable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build
<= You should be able to copy/paste directly from this Window
Please post back any errors you get

5. Now you can actually build your binary driver:

make
<= Please post back any errors you might get

6. If "make" succeeds, you can install your driver:

su -c "make install"
<= The quote (") marks are important
Please post back if you get any errors
Good luck .. PSM

PS:
I use SimplyMepis myself. The folks on the Mepis forum (like those on LQ) are friendly and helpful. Feel free to call out to them for help, too, if you need it.

Last edited by paulsm4; 08-03-2009 at 01:38 AM.
 
Old 08-03-2009, 06:07 AM   #9
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
I was just thinking that since their site says EXAMPLE: and gives that directory, that maybe the directory just had a different name and you overlooked the message saying that the directory doesn't exist ... you should autocomplete it with tab.
 
Old 08-03-2009, 02:48 PM   #10
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 649

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by z-vet View Post
You're inside your homedir already. Do 'cd hplip-3.9.6b', no need to enter full path.
PS: why you need to compile it, there's no hplip in Mepis' repos?
The reason I am compiling it: The hplip included just isn't working. The MEPIS 8 repo has the proper version but I keep getting strange messages. So, I decided to compile, hoping doing so will solve the problem.

I will try these suggestions and post results.

Thanks all!
 
Old 08-03-2009, 06:22 PM   #11
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 649

Original Poster
Rep: Reputation: 30
paulsm4, et al.

I completed steps 1-3 you listed. Step 4 has me stuck. I did the ./config as you said. Lots of stuff displayed on the console but the last line was an error message regarding libjpeg. I went into synaptic and downloaded it. Then I did the ./config a 2nd time. I received a different error message:

configure: error: cannot find net-snmp support (or --disable-network-build)

Again, I went to synaptic to download "snmp" and found a bunch of stuff:

http://img200.imageshack.us/img200/7356/snmp.jpg

Question #1: Which of those "snmp" do I download?

Question #2: I have now twice done the ./config only to run into an error somewhere. Does this mean I now have an incomplete install which could cause trouble, or a bunch of duplicate packages I will need to sort through, trim, etc? In other words, did I just make more work for myself?

Thanks again!
 
Old 08-03-2009, 06:24 PM   #12
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
I would download **libnet-snmp-perl or libsnmp-dev**<-EDITED
You didn't make more work for yourself ... it happens. You have to have everything you need to configure and compile and install it, that's all.
If you install it, that means you have what you need. Unless you're looking to run make test, or something along those lines for tests ...
Someone else would know more, though ... it's possible that you wouldn't have some optional things. I've read that depending on how you configure and everything, that it will leave out some optional things, but usually what you need to install you either have or you don't and the optional things are features that aren't normally included when you download and install from a repository or anything along those lines - that is, it isn't something you'd normally have, anyways.
I just added the libnet-snmp-perl because it says no net-snmp support.

Last edited by joeBuffer; 08-04-2009 at 11:32 PM. Reason: net-snmp, I added libnet-snmp-perl because it seems like what you'd need in this case.
 
Old 08-03-2009, 06:28 PM   #13
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Unless you need to print over the network, I would add
Code:
--disable-network-build
to your ./configure line. That would seem to only be needed for network printing.
 
Old 08-03-2009, 07:04 PM   #14
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 649

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by XavierP View Post
Unless you need to print over the network, I would add
Code:
--disable-network-build
to your ./configure line. That would seem to only be needed for network printing.

XavierP,

Forgive the noobness, but what do you mean by "print over the network"?

My current setup: XP / Linux dual boot, though I eventually want it to just be Linux with a guest virtual XP.

Based upon that data, do you still suggest I add that code to the ./config?
 
Old 08-03-2009, 07:07 PM   #15
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
I also wanted to add that the only time I've ever gotten clamav to work without spewing a bunch of messages was compiling it from source. Every time I've installed it using packages, on a few different distributions, it always threw messages at me.
 
  


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
configure script sends bad switches to daughter configure scripts Wells Linux - Software 7 10-10-2008 03:38 PM
dpkg-buildpackage configure: error: can only configure for one host and one target at donnied Debian 0 05-26-2008 07:08 PM
./configure fails with: libz... configure: error: not found. erpe Linux - Software 17 10-11-2006 05:56 PM
[root@Linuxboy magicolor2430DL-1.1.0]# ./configure ./configure: No such file or ... anseK Mandriva 7 01-02-2006 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:59 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