HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   HOWTO:Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (http://www.howtoforge.com/forums/showthread.php?t=50992)

sammd006 18th January 2011 12:11

HOWTO:Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail
 
Hi Falko,
Currently I am following your tutorial:

HOWTO: Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Fedora 13 x86_64)

I am stuck in part 4 (4 Install Courier-IMAP, Courier-Authlib, And Maildrop)

When I am trying to build rpm packages using

rpmbuild -ta courier-imap-4.8.0.tar.bz2

i am getting the bellow errors:

Obsoletes: courier-imap-ldap courier-imap-mysql courier-imap-pgsql
Processing files: courier-imap-debuginfo-4.8.0-1.13.i686
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/dust/rpm/BUILDRO OT/courier-imap-4.8.0-1.13.i386
Wrote: /home/dust/rpm/SRPMS/courier-imap-4.8.0-1.13.src.rpm
error: Could not open /home/dust/rpm/RPMS/i686/courier-imap-4.8.0-1.13.i686.rpm:Permission denied

RPM build errors:
Could not open /home/dust/rpm/RPMS/i686/courier-imap-4.8.0-1.13.i686.rpm: Permission denied

I cannot build only this rpm :(

regards,
Dustin

sammd006 18th January 2011 23:08

Hi,

Found the solution.... After searches I have found this:

sudo chown user /home/rpm/RPMS/i686 (press enter)

where user = your username
path where i686 may be different for your system....

afterwards i ran the command to build the rpm and it was done without any errors :)

thanks alot

Dustin

Totenkopf 31st October 2012 11:21

Hi!

I'm also currently following the tutorial "HOWTO: Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Fedora 13 x86_64)" and being stuck.

I can't build an rpm out of "courier-authlib-0.65.0.tar.bz2", because i always get the following error:

Quote:

(...)
checking for mysql_real_connect... yes
checking for mysql_connect... (cached) no
checking for mysql_real_connect... (cached) yes
checking for sqlite3_version... no
checking for sqlite3_version... (cached) no
configure: error: Cannot link with
error: Bad exit status from /var/tmp/rpm-tmp.2sOSSG (%prep)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.2sOSSG (%prep)
I'm running a CentOS 6.3 with Apache, MySQL, already installed and configured.

This is the first time i try to build a package, so any ideas would be great! :/

Totenkopf 31st October 2012 12:08

Now i've used the exactz package from the tutorial "courier-authlib-0.63.0.tar.bz2" but the result differs a bit from the tutorials. My "/rpm/RPMS/" folder is empty, but i've got some files in the "rpm/BUILD" dir, like executable conf and install scripts.

What shall i do with them?

Totenkopf 31st October 2012 13:15

Got it!

The rpms from the commands with sudo are created in the home dir of root (/root/rpms/RPMS/x86_64/<bla>.rpm) and the courier-imap rpm is created in the home dir of the user falko.

Works fine, even if i still dont understand, why i cant build an rpm from the newer authlib package...


All times are GMT +2. The time now is 21:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.