Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th July 2012, 04:03 PM
ddan Offline
Registered User
 
Join Date: Oct 2006
Posts: 168
linuxfirefox
How to compile and install kmail1

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 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 this releases. If you plan to use some other release the instructions may need to be changed somewhat.

Install these modules
Code:
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:
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:
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:
make
You should complete at [%100].

Code:
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:
make
You should complete at [%100]

Cut and paste the following command.

Code:
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:
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

To run kmail1 open a terminal window and type
Code:
kmail
Uninstall

You want to go back to kmail2?

Cut and paste the following commands.

Code:
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; 26th December 2012 at 07:33 AM. Reason: Update for compile error on Fedora 17
Reply With Quote
  #2  
Old 10th July 2012, 06:20 PM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,153
linuxredhatmozilla
Re: How to compile and install kmail1

Good work! I missed the good old kmail...

But why is akonadi needed? Isn't it the kmail2 _great_ feature?
Did you try with another installation directory (/opt, /usr/local) to not overwrite the system?
Can we rename the binaries (by adding a prefix/suffix)?

It is good to hear that everithing we need is to compile kdepim. Maybe the time to fork kmail1?

I know this is a lot of questions, but I am interresting in recovering kmail1 _without_ overwriting the system, so we could build an rpm.
Thanks.
__________________
:confused:
Reply With Quote
  #3  
Old 11th July 2012, 10:23 AM
ddan Offline
Registered User
 
Join Date: Oct 2006
Posts: 168
linuxfirefox
Re: How to compile and install kmail1

Skull One akonaki is used by kaddressbook. From what I understand kaddressbook was the first of many kde programs that will convert to using akonaki. This version is the last kmail1 version before kmail converted to akonaki. Unfortunately kaddressbook which uses akonaki comes in kdepim package.

My long term goal would be convert to an rpm for the ease of installing kmail1. Yes we could convert to another directory, but my goal was not to change anything thus avoiding the issue of can we trust ddan.

I would be all for forking kdepim (kmail1) and moving to some place like sourceforge.

ddan
Reply With Quote
  #4  
Old 11th July 2012, 12:23 PM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,153
linuxredhatmozilla
Re: How to compile and install kmail1

Quote:
Originally Posted by ddan View Post
Skull One akonaki is used by kaddressbook. From what I understand kaddressbook was the first of many kde programs that will convert to using akonaki. This version is the last kmail1 version before kmail converted to akonaki. Unfortunately kaddressbook which uses akonaki comes in kdepim package.
I forgot that...

Quote:
My long term goal would be convert to an rpm for the ease of installing kmail1. Yes we could convert to another directory, but my goal was not to change anything thus avoiding the issue of can we trust ddan.
I was thinking of some options to parse to the configure script (or its equivalent). I do not really know cmake. To reformulate: is there any, and do they work?

Quote:
I would be all for forking kdepim (kmail1) and moving to some place like sourceforge.
I suggest the name 'ksimplemail'.
__________________
:confused:
Reply With Quote
  #5  
Old 26th December 2012, 07:02 AM
ddan Offline
Registered User
 
Join Date: Oct 2006
Posts: 168
linuxfirefox
Re: How to compile and install kmail1

Greetings,

In porting to Fedora 17 I have found that kmail1 has a compile error. A simpile fix was provided by David Narvaez of the kde-pim group. Many thanks David. The fix will work for both Fedora 16 and Fedora 17. I will be posting updated instructions shortly.

ddan

Instrustions have been updated.

ddan

Last edited by ddan; 26th December 2012 at 07:36 AM. Reason: Status update
Reply With Quote
Reply

Tags
compile, install, kmail, kmail1, kmail2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to install/compile qtsixa survient Using Fedora 4 2nd April 2012 09:24 AM
YUM install vs compile ... which is better? dj29152 Using Fedora 7 30th June 2010 05:24 AM
QT and QWT compile/ install problems Scotsguy101 Installation, Upgrades and Live Media 0 30th April 2009 11:43 AM
How to compile/install rfswitch donjuan2001 Hardware & Laptops 6 19th February 2007 01:05 PM
Can't install rpms or compile C!!! lancelottjones Using Fedora 4 28th March 2005 02:56 PM


Current GMT-time: 13:37 (Tuesday, 21-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Migori Photos on Instagram - Bargarh Photos - Pilar Photos