LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-09-2004, 09:35 PM   #1
clueless_user
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Rep: Reputation: 0
i'm unable to run a patch


i'm installing qmail using the guide from qmailrocks.org, and i cant seem to run a the patch in step 2.

i'm a newbie in linux and i only know the REAL basic commands.. but i need to install qmail as one of the requirements in my class, so i'm following the guide from qmailrocks.org, since it seems to be very detailed.

please help me!!!
 
Old 08-09-2004, 11:10 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
What exact command are you running and what exactly is the error message that you're seeing?
 
Old 08-10-2004, 09:13 AM   #3
clueless_user
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
this line..
/downloads/qmailrocks/scripts/util/qmail_big_patches.script

but its saying that no files or directory found..
but i know its there...
 
Old 08-10-2004, 01:15 PM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
run this command sequence and paste the results (# inducates root prompt):
Code:
# cd /downloads/qmailrocks/scripts/util
# ls -al | grep *patch*
Check the permissions if teh file is executable, that the speeling/case is correct, adn that your doing it as root, or that hte directories are +rwx for your user/group
 
Old 08-11-2004, 09:43 PM   #5
clueless_user
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
ok, so i change the permission and run the command again.. and this time it showed a different result...

something like:
Code:
can't find file to patch at input line 4
perhaps you should have used the -p or --strip option?
the text leading up to this was:
| qmail-1.03-vanilla/FILES 
qmail-1.03-patched/FILES

skipping this file? [y] 

skipping patch.
3 out of 3 hunks ignored.
Then it just kept repeating, but changing the file..

i don't know if i should be happy or not ( this is making me feel really stupid!)
 
Old 08-11-2004, 09:57 PM   #6
OEP
Member
 
Registered: Apr 2004
Location: AL, USA
Distribution: FC4, Gentoo
Posts: 58

Rep: Reputation: 15
Just a thought, but maybe you should cd to the directory above the qmail and run the patch. Like:

If qmail is in:
/home/foo/qmail

Run the patch while you are in:
/home/foo

Is there an online version of the instructions?
 
Old 08-12-2004, 12:01 AM   #7
clueless_user
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
i've tried to run the patch in just about every location i can think of, and it the output is still the same.

what should i do now?

BTW, thanks for the help!!!

do you think that i should just install "qmail for dummies"? do you guys recommend that?

Last edited by clueless_user; 08-12-2004 at 12:04 AM.
 
Old 08-12-2004, 12:24 AM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
The message about patch being unable to find the source file suggests you are running patch at the wrong level of the QMail source tree. Basically, if you open up the patch file you will see paths to files in the QMail source tree. They are relative (as opposed to absolute) paths. According to my patch manpage, if you leave off the -p option, patch will just look for the file in the current directory, which is not what you want. If you're in the root of the QMail source tree, you probably want -p1 as the argument to patch (most patches are generated against the source of the tree). But try -p0 or -p1 just to be safe. Alternatively, when patch asks for for the location of the file to patch, you can tell it (the find command will come in useful here). Please consult man patch, particularly the -p option, for details. This can be somewhat confusing, so just relax and try to understand what's going on and how patch works. It sometimes takes me two or three tries to apply a patch until I get the level figured out (but one of -p0 or -p1 from the root of the QMail source should work).
 
Old 08-12-2004, 12:58 AM   #9
clueless_user
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
i've tried this command:

patch -p0 < downloads/qmailrocks/scripts/util/qmail_big_patches.script

this was the result:

patch: **** only garbage was found in the patch input

what does that mean? (sorry if the question is stupid.. )
 
Old 08-12-2004, 01:38 AM   #10
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
The patch ought to have a .patch extension (this is the custom, at any rate) -- were you patching against this script file when you got the "can't find file to patch" error message? My guess is you're not giving it the patch file.
 
Old 08-16-2004, 07:37 PM   #11
clueless_user
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
qmail_big_patches.script, (the script that i'm trying to execute) includes the following inside the script.


Code:
#!/bin/sh PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/sbin 

 #So let's go...  cd /usr/src/qmail/qmail-1.03 

#Apply John Simpson's gigantic all-in-one qmail patch  echo echo "Applying John Simpson's all in one qmail patch..."
 sleep 2
 patch < /downloads/qmailrocks/patches/qmail-1.03-jms1.5.patch 
sleep 2 
 #Next, we will apply the forcetls patch  echo echo "Applying Ryan Schlesinger's forcetls patch" 
sleep 2
 patch < /downloads/qmailrocks/patches/qmail-1.03-forcetls-20040703.patch  
sleep 2 
echo "All done!"
by the way, its still not running..
 
Old 08-16-2004, 09:16 PM   #12
clueless_user
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
should i start over again?
if i just need to install qmail interface, do i really need to install the other additional qmail tools that comes with the instructions? things like q-trap, qms-analog and other things like that?

whats the most simplest way to install it?
 
Old 08-16-2004, 10:10 PM   #13
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
It looks like that file is a shell script that actually runs the patch command for you. So you just need to run the script and everything should work. It does try to cd to /usr/src/qmail/qmail-1.03 (see line 2, I hope that's just a formatting glitch and the cd is not commented out, if it is, you'll need to run patch from the qmail source directory) so you'll need to be sure that exists (or it may not matter, see previous note). You probably don't need to install all of these extras, but I'm not sure since I've never played with QMail. If you don't understand what they do or aren't sure, you might be better served just going on. You can always come back later and rebuild if something doesn't go quite right.
 
Old 08-18-2004, 11:52 PM   #14
clueless_user
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
i quit using qmailrocks as a guide because i was losing hope.. i really need to install all of this by the end of the week. so basically, i need to have a running mail server in two days...

i decided to find another guide in the internet and i found life with qmail. i got a lot further in less than an hour than i ever did with qmailrocks.

now i have to configure qmail.. i cant understand the instructions so how do i do it?
do i really need multiple host names and virtual domains when its only a for a small LAN? it will only be used in a classroom.
 
Old 03-11-2005, 09:23 AM   #15
artimador
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Have you tried the qmail rocks mailing list? I know the last post was in august but the qmailrocks installation guide works fine. Did you start over from scratch?
 
  


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
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
UT2004 wont run after update patch (user error) carlosinfl Linux - Games 7 07-19-2004 07:12 AM
How to run a patch file satimis Debian 2 01-07-2004 11:27 PM
Unable to run hl1110 patch with wine- Details inside; help! ljs1987 Linux - Games 0 11-12-2003 04:36 AM
Volume control is unable to run correctly. Unable to open audio device '/dev/mixer'. sevenreams Slackware 1 05-16-2003 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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