PDA

View Full Version : [The Perfect Server - Fedora 10 [ISPConfig 3]] - Courier-IMAP


Blaasbalg
8th May 2009, 12:30
Hi,

Currently I'm stuck at chapter 10 at the The Perfect Server - Fedora 10 [ISPConfig 3] tutorial.
The part where it fails (Page 4 - Link (http://www.howtoforge.com/perfect-server-fedora-10-ispconfig-3-p4)):

Now we go back to the $HOME/downloads directory and run rpmbuild again, this time without sudo, otherwise the compilation will fail because it was run as root:

cd $HOME/downloads
rpmbuild -ta courier-imap-4.4.1.tar.bz2

When I execute the rpmbuild command, I get the following error:

Unable to open spec file /home/compileuser/rpm/SPECS/rpm-spec.7VpoCv

The part after the dot (rpm-spec.) always changes, so basically there are no files in SPECS.
Even though it seems to work just fine when I do this under the root account (but then I get the error saying that you are not allowed to build it with the root account).

Everything before this step went fine, without errors, so no problem there I guess...
Does anybody know what's wrong?

Kind Regards,
Thomas

Blaasbalg
8th May 2009, 22:55
Nobody?

I'd like to have the server running this weekend, but I really don't know what's wrong.
I searched a lot, can't find anything usefull..

falko
9th May 2009, 14:37
What's the output of ls -la /home/compileuser/?

Blaasbalg
9th May 2009, 14:51
I found the problem a few hours ago :)

Somehow the owner of the rpm directories (like $HOME/rpm/SPECS etc.) was not the compileuser.
Which is weird because they were created with the compileuser account...

But anyway, I performed the following command under the root account:
chown -hR compileuser /home/compileuser/
Which set compileuser as the owner of the rpm directory, and all subdirectories.

This fixed the problem. But I still don't know why... I followed everything in the tutorial step-by-step, so it should work fine.

Maybe there's a little error in the tutorial?

Kind Regards,
Thomas.

falko
9th May 2009, 15:27
Maybe there's a little error in the tutorial?

I don't think so - it's working for me.

GrimmyBear
18th May 2009, 12:33
Thank you Blaasbalg.

I encountered the same problem as you. By altering the directory permissions everything is working fantastically:D.

Kind regards
Nick