LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2011, 03:31 AM   #1
dimpleboy
LQ Newbie
 
Registered: May 2011
Location: quezon city, philippines
Posts: 13

Rep: Reputation: 0
LP command not found


Hi Guys,

I have a RHEL 5.5 OS, i am trying to issue the lp command but it returns an error "command not found".

Is there any rpm that i need to install first to enable this? or any configuration i need to do first.

Thanks for the coming replies.
 
Old 08-17-2011, 03:52 AM   #2
nerak99
Member
 
Registered: Feb 2006
Distribution: FC 15
Posts: 42

Rep: Reputation: 2
If you just issue lp then you should get no response because the commans lp needs parameters, however, I am amazed that someone in the newbies group is turning up without lp even installed.

Anyway, if you install cups you will get lp as it is a requirement of cups.

This should work with

yum install cups

however, as you have RHEL, you may have a license issue when you try to access the default yum repositories. If this is the case and you have no RHEL license I suggest you swap over to Centos.
 
Old 08-17-2011, 03:56 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by dimpleboy View Post
Hi Guys,

I have a RHEL 5.5 OS, i am trying to issue the lp command but it returns an error "command not found".

Is there any rpm that i need to install first to enable this? or any configuration i need to do first.

Thanks for the coming replies.
I don't know about redhat but in Debian /usr/bin/lp is found in package called "lprng" which is described as "lpr/lpd printer spooling system". I hope that helps.
ciao,
jdk
 
1 members found this post helpful.
Old 08-17-2011, 04:50 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
EL5 : which lp , the reply is /usr/bin/lp

ls -l /usr/bin/lp : /usr/bin/lp -> /etc/alternatives/print-lp

ls -l /etc/alternatives/print-lp :
/etc/alternatives/print-lp -> /usr/bin/lp.cups

May be cups isn't installed ?
Or a missing link / setup in alternatives ?

..
 
1 members found this post helpful.
Old 08-18-2011, 10:08 AM   #5
dimpleboy
LQ Newbie
 
Registered: May 2011
Location: quezon city, philippines
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks to all reply, what knudfl said is what I exactly did and it works. Thanks for all response.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
setup command not found in Ubuntu 10.04 Command Prompt vinaytp Ubuntu 2 05-06-2010 02:10 PM
Shell: command not found / Runs fine with "Run command" badbunny Linux - Newbie 1 01-22-2007 02:21 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-28-2006 12:57 AM
bash: <command name> command not found smash Programming 5 03-13-2006 09:48 AM
command not found jkp Linux - Newbie 3 01-21-2003 03:26 PM


All times are GMT -5. The time now is 12:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration