Reply to topic

How to compile and install kmail1

User avatar ddan
Registered Member
Posts
31
Karma
0
OS

How to compile and install kmail1

Mon Jul 09, 2012 8:03 am
NOTE: This procedure has been updated to fix a compile error on Fedora 17. This procedure now works for both Fedora 16 and Fedora 17

This procedure compiles the kdepim package. There is more in the kdepim package than just kmail and all the programs in kdepim will be replaced with the 4.4.11.1 release. If you converted to kmail2 you will have to save your emails since you converted to kmail2 and move them to kmail1. You should do a complete backup of your system before installing the 4.4.11.1 release. Things can and do go wrong, so a backup is absolutely necessary. I would recommend that you create a virtual machine such as free vmplayer found a http://www.vmware.com and test that you will not lose any data from installing an older kdepim package. You would need to move over the folders .kde and .local to the virtual machine.

I have tested on Fedora 16 and Fedora 17 and the instructions are geared toward these releases. If you plan to use some other release the instructions may need to be changed somewhat.

Install these modules
Code: Select all
yum -y install @development-tools
yum -y install ruby rubygems sqlite-devel
yum -y install libxml2-devel
yum -y install akonadi-devel
yum -y install libgpg-error-devel
yum -y install gpgme-devel
yum -y install libassuan-devel
yum -y install kdepimlibs-devel kdepim-devel


Setup
Open a terminal and change directory to your home directory and then cut and paste and execute the following commands.

Code: Select all
mkdir KDE
cd KDE
wget http://kde.mirror.aussiehq.net.au/stable/kdepim-4.4.11.1/src/kdepim-4.4.11.1.tar.bz2
wget http://kde.mirror.aussiehq.net.au/stable/kdepim-4.4.11.1/src/kdepim-runtime-4.4.11.1.tar.bz2
tar -xf kdepim-4.4.11.1.tar.bz2
tar -xf kdepim-runtime-4.4.11.1.tar.bz2
mkdir kdepim-4.4.11.1/build
mkdir kdepim-runtime-4.4.11.1/build
echo 'cmake ../ \'                     > build
echo '   -DCMAKE_BUILD_TYPE=Release \' >>build
echo '   -DCMAKE_SKIP_RPATH=ON \'      >>build
echo '   -DCMAKE_INSTALL_PREFIX=/usr'  >>build
chmod +x build
cp build kdepim-4.4.11.1/build/.
cp build kdepim-runtime-4.4.11.1/build/.
sed '146 s/connect/QObject::connect/' \
kdepim-4.4.11.1/libkleo/backends/qgpgme/threadedjobmixin.h >temp
mv temp kdepim-4.4.11.1/libkleo/backends/qgpgme/threadedjobmixin.h


Compile
Cut and paste and execute the following commands.

Code: Select all
cd kdepim-4.4.11.1/build
./build


You should see the following.
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
* indicate-qt (0.2.1 or higher) <http://launchpad.net/libindicate-qt>
Qt bindings for libindicate
Needed for KMail integration with libindicate Indicators.


Fedora comes with many packages preinstalled if other things are missing, you will need to find and install additional packages.

Cut and paste the following command.

Code: Select all
make


You should complete at [%100].

Code: Select all
cd ../..
cd kdepim-runtime-4.4.11.1/build
./build


You should see the following message
---------------------------------------------------------------------------
-- Congratulations! All external packages have been found.
---------------------------------------------------------------------------

Cut and paste the following command.

Code: Select all
make


You should complete at [%100]

Cut and paste the following command.

Code: Select all
cd ../..


Install

Before you continue, backup your files.

Fedora has an Add/Remove Software item under System Tools.
Remove Just kdepim not all of kde.

Cut and paste the following commands.

Code: Select all
su
cd kdepim-runtime-4.4.11.1/build
make install
cd ../..
cd kdepim-4.4.11.1/build
make install
cd ../..
exit


Reboot your machine

Upon rebooting the machine open a terminal window and type
Code: Select all
kmail

If you try to use the kmail from the drop down menu it wil attempt to convert to kmail2 which is not what you want.

Uninstall

You want to go back to kmail2?

Cut and paste the following commands.

Code: Select all
su
cd kdepim-4.4.11.1/build
make uninstall
cd ../..
cd kdepim-runtime-4.4.11.1/build
make uninstall
cd ../..
exit


Fedora has Add/Remove item under System Tools.
Add the kdepim package.

Reboot your machine

ddan

Last edited by ddan on Wed Dec 26, 2012 3:34 pm, edited 1 time in total.
User avatar psychonaut
Registered Member
Posts
11
Karma
1
OS

Re: How to compile and install kmail1

Fri Nov 09, 2012 12:59 pm
Your instructions say to first remove any existing kdepim package, and then to install kdepim-runtime-4.4.11.1 and kdepim-4.4.11.1 from source. However, isn't it necessary to also first remove any existing kdepim-runtime package? I have an openSUSE 12.2 system running KDE 4.9.3; removing kdepim-4.9.3 is not a problem, but kdepim-runtime-4.9.3 is a dependency for a few non-KDE PIM applications such as Kopete and KGPG.
User avatar ddan
Registered Member
Posts
31
Karma
0
OS
Psychonaut sorry for the late reply. I have not check the board in quite awhile.

Yes, you would have to remove all dependencies and reinstall them after you install kdepim-runtime. Hopefully there wasn't any extra runtime functions added to support Kopete and KGPG in kdepim-4.9.3.

ddan
silentarts
Registered Member
Posts
2
Karma
0
When I type in "kdepim-4.4.11.1/libkleo/backends/qgpgme/threadedjobmixin.h >temp", it tells me "bash: kdepim-4.4.11.1/libkleo/backends/qgpgme/threadedjobmixin.h: Permission denied"


Can you help me out bro?
silentarts
Registered Member
Posts
2
Karma
0
Unable to use make after the first compile using ./build.... I get an error saying

The second make worked perfectly...

 
Reply to topic

Bookmarks



Who is online

Registered users: alake, Baidu [Spider], Bing [Bot], boudewijn, colomar, edmael, Exabot [Bot], garthecho, Google [Bot], google01103, Hans, jitseniesen, ken300, koriun, mayankasthana, mgraesslin, mixoff, mmistretta, pedrorodriguez, scummos, SeaJey, SecretCode, Sentynel, Sogou [Bot], urgo, Yahoo [Bot]