Avatar of kwburress
kwburress asked on

fetchmail install on Centos 6

the centos repos only have 6.3.17, but i want the latest version of 6.3.26. I tried installing it from source code from here but as i was doing ./configure, i was seeing warnings that OpenSSL was not recognized. So as per the warning instructions, i reconfigured useing the ./configure --with-ssl command to include the ssl support. After make, then make install, im not sure the install went correctly because after a rpm -qi fetchmail, it shows its not installed.

i found an updated repo here but its for OPENSUSE, not a Centos build.

here is the output from the source code compile and install.

[root@WEBHOST fetchmail-6.3.26]# make install
make install-recursive
make[1]: Entering directory `/root/Downloads/fetchmail-6.3.26'
Making install in .
make[2]: Entering directory `/root/Downloads/fetchmail-6.3.26'
make[3]: Entering directory `/root/Downloads/fetchmail-6.3.26'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c fetchmail '/usr/local/bin'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c fetchmailconf '/usr/local/bin'
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 'fetchmail.man' '/usr/local/share/man/man1/fetchmail.1'
/usr/bin/install -c -m 644 'fetchmailconf.man' '/usr/local/share/man/man1/fetchmailconf.1'
test -z "/usr/local/lib/python2.6/site-packages" || /bin/mkdir -p "/usr/local/lib/python2.6/site-packages"
/usr/bin/install -c -m 644 fetchmailconf.py '/usr/local/lib/python2.6/site-packages'
Byte-compiling python modules...
Byte-compiling python modules (optimized versions) ...
make[3]: Leaving directory `/root/Downloads/fetchmail-6.3.26'
make[2]: Leaving directory `/root/Downloads/fetchmail-6.3.26'
Making install in po
make[2]: Entering directory `/root/Downloads/fetchmail-6.3.26/po'
/bin/mkdir -p /usr/local/share
installing ca.gmo as /usr/local/share/locale/ca/LC_MESSAGES/fetchmail.mo
installing cs.gmo as /usr/local/share/locale/cs/LC_MESSAGES/fetchmail.mo
installing da.gmo as /usr/local/share/locale/da/LC_MESSAGES/fetchmail.mo
installing de.gmo as /usr/local/share/locale/de/LC_MESSAGES/fetchmail.mo
installing el.gmo as /usr/local/share/locale/el/LC_MESSAGES/fetchmail.mo
installing en_GB.gmo as /usr/local/share/locale/en_GB/LC_MESSAGES/fetchmail.mo
installing eo.gmo as /usr/local/share/locale/eo/LC_MESSAGES/fetchmail.mo
installing es.gmo as /usr/local/share/locale/es/LC_MESSAGES/fetchmail.mo
installing fi.gmo as /usr/local/share/locale/fi/LC_MESSAGES/fetchmail.mo
installing fr.gmo as /usr/local/share/locale/fr/LC_MESSAGES/fetchmail.mo
installing gl.gmo as /usr/local/share/locale/gl/LC_MESSAGES/fetchmail.mo
installing id.gmo as /usr/local/share/locale/id/LC_MESSAGES/fetchmail.mo
installing it.gmo as /usr/local/share/locale/it/LC_MESSAGES/fetchmail.mo
installing ja.gmo as /usr/local/share/locale/ja/LC_MESSAGES/fetchmail.mo
installing nl.gmo as /usr/local/share/locale/nl/LC_MESSAGES/fetchmail.mo
installing pl.gmo as /usr/local/share/locale/pl/LC_MESSAGES/fetchmail.mo
installing pt_BR.gmo as /usr/local/share/locale/pt_BR/LC_MESSAGES/fetchmail.mo
installing ru.gmo as /usr/local/share/locale/ru/LC_MESSAGES/fetchmail.mo
installing sk.gmo as /usr/local/share/locale/sk/LC_MESSAGES/fetchmail.mo
installing sq.gmo as /usr/local/share/locale/sq/LC_MESSAGES/fetchmail.mo
installing sv.gmo as /usr/local/share/locale/sv/LC_MESSAGES/fetchmail.mo
installing tr.gmo as /usr/local/share/locale/tr/LC_MESSAGES/fetchmail.mo
installing vi.gmo as /usr/local/share/locale/vi/LC_MESSAGES/fetchmail.mo
installing zh_CN.gmo as /usr/local/share/locale/zh_CN/LC_MESSAGES/fetchmail.mo
if test "fetchmail" = "gettext-tools"; then \
/bin/mkdir -p /usr/local/share/gettext/po; \
for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \
/usr/bin/install -c -m 644 ./$file \
/usr/local/share/gettext/po/$file; \
done; \
for file in Makevars; do \
rm -f /usr/local/share/gettext/po/$file; \
done; \
else \
: ; \
make[2]: Leaving directory `/root/Downloads/fetchmail-6.3.26/po'
make[1]: Leaving directory `/root/Downloads/fetchmail-6.3.26'
[root@WEBHOST fetchmail-6.3.26]# rpm -qi fetchmail
package fetchmail is not installed
LinuxLinux Distributions

Avatar of undefined
Last Comment

8/22/2022 - Mon
Steven Vona

Try installing with yum, I believe it should be available on the base repos.

yum install fetchmail

over the past week, ive been trying to get fetchmail working on version 6.3.17, thats the version that comes from centos repos. if i can, i'd like the latest one, since it references a few SSL related fixes, they may not fix my problem, but it was worth a shot.

[root@WEBHOST /]# yum install fetchmail
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: mirror.serversurgeon.com
 * elrepo: elrepo.org
 * extras: centos.mirrors.tds.net
 * rpmforge: apt.sw.be
 * updates: mirror.pac-12.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package fetchmail.x86_64 0:6.3.17-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package                    Arch                    Version                          Repository             Size
 fetchmail                  x86_64                  6.3.17-1.el6                     base                  507 k

Transaction Summary
Install       1 Package(s)

Total download size: 507 k
Installed size: 1.9 M
Is this ok [y/N]:

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

The Fetch make does not appear with the rpm -qi because you didn't installed using rpm, you used the source code and compiled and then installed.


ah ok... also looks like it changed install path to /usr/local/bin instead of the yum package version at /usr/bin

Ok so could this also be the reason why it doesnt recognize openssl because it was installed with yum instead of the source code, where it can be linked against?

because now evoking fetchmail returns:

[dropbox@WEBHOST ~]$ fetchmail -d0 -vk
fetchmail:/home/dropbox/.fetchmailrc:7: SSL is not enabled at ssl

checking with ldd, looks like ssl isnt enabled, i see no libssl* even though i specified the --with-ssl option when i did ./configure  

[dropbox@WEBHOST ~]$ ldd /usr/local/bin/fetchmail
        linux-vdso.so.1 =>  (0x00007ffff15ff000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f37710eb000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f3770ed1000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f3770b3d000)
        libfreebl3.so => /lib64/libfreebl3.so (0x00007f37708d1000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f3771330000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f37706cd000)
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.