Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I tried installing Office 2007 in Ubuntu with Wine but it was throwing an error after installing and also when I tried to open a PowerPoint document and save it. Has anybody gotten Office 2007 installed without any issues? Please help me.

share|improve this question
1  
I'd suggest just using LibreOffice, which should have come free with your Ubuntu out of the box. I haven't found anything I could do in Office that I couldn't do in LibreOffice just as easily. –  Don Jun 25 '12 at 14:55
4  
But is not as good as office 2007...everyone will accept it –  user49848 Jun 25 '12 at 15:00
    
In what way is it not as good as Office 2007? And I'm not sure what you mean by 'everyone will accept it'. –  Don Jun 25 '12 at 15:01
4  
@Don this question is not about LibreOffice, but about M$ office. –  don.joey Jan 28 '13 at 9:23
1  
@user49848 You can install MS Office 2007, through playonlinux. Open a Terminal with Ctrl+Alt+T and type ` sudo apt-get install playonlinux`. For detailed instructions follow this link. –  efthialex Feb 19 '13 at 20:54

4 Answers 4

You can install MS Office 2007, with the help of PlayOnLinux. PlayOnLinux is a graphical front-end for the Wine software compatibility layer which aims to simplify the installation of Windows-based applications.

1. Installation of PlayOnLinux


You can install PlayOnLinux from Ubuntu Software Center

Download

or open a Terminal with Ctrl + Alt + T and type:

sudo apt-get install playonlinux and fill in your password.

enter image description here

Then type Y or yes and hit Enter ↵ to install the package.

enter image description here

After a while you will need to accept the EULA of mscorefonts. To select the OK option, hit  ⇆ TAB  and then Enter ↵.

enter image description here

enter image description here

When the installation process is finished open PlayOnLinux from dash

enter image description here

The first time you open it, click Next to set up the PlayOnLinux environment.

enter image description here

enter image description here

After that everything is set up.

2. Mount *.iso or CD-ROM


At this momment, you need to mount the .iso or place in the CD that contains the MS Office 2007.

If you have a .iso file open a Terminal and type

sudo mkdir /media/office07 With this command you'll create a folder with the name office07 in /media.

Next type

sudo mount -o loop ~/filename.iso /media/office07 to mount the image into our new directory.

3. Install MS Office 2007


Now switch on PlayonLinux window and click on the button Install to install a new software.

enter image description here

Next, go on the category Office, choose Microsoft Office 2007 and click in the button Install.

enter image description here

Hit Next

enter image description here

After some time you will be asked to install Gecko Installer. Hit the Install button.

enter image description here

When the installation of Gecko Installer is finished you will have to choose where is your CD/.iso is mounted and click Next.

enter image description here

At last continue as usually

enter image description here

When you finish with installation you will have three new shortcuts in your desktop (Word, Excel, Powerpoint)

enter image description here

share|improve this answer
    
great, i feel i'll be needing that soon. in case you come about testing that feature with multiple wine versions that i mentioned in the other comment, please update your answer in the future. i'll do the same in case i am in the position to talk about that. i'm very happy msoffice in linux becomes so easy and a last reason to mess with the other OS is gone –  cipricus Feb 20 '13 at 12:28
    
what version of wine have you tested? what do you think about the regressions reported here? (appdb.winehq.org/objectManager.php?sClass=version&iId=4992). have you met this kind of problem? –  cipricus Feb 21 '13 at 10:26
    
@cipricus PlayOnLinux automatically installs Office 2007 under wine 1.2.3. I didn't face any issues the last 6 months. –  efthialex Feb 21 '13 at 10:40
    
Can you move the shortcuts to the Unity Launcher? –  Jop Vernooij Jun 22 '13 at 13:01
    
@com.BOY Yes you can. Take a look at this post : askubuntu.com/questions/159103/… –  efthialex Jun 23 '13 at 11:47

Definitely yes, in Wine 1.5.

Details on the WineHQ site: here.

That is my source, I'll add instructions from there.

(Pay attention to what they say there, like: "There are many howtos for installing Office 2007 floating about the internet. These howtos are rarely maintained by their authors, and because of the rapid rate of Wine development, even ones that were accurate at the time they were posted quickly become outdated.

In the case of Office 2007, many of these outside howtos call for installing a long list of winetricks that are unnecessary to install in current Wine. Some of these tweaks can, in fact, prevent Office apps from working properly.

The only howto for installing Office 2007 that is supported here is the one on this page."

"­No overrides are nee­ded to install Microsoft Office 2007. However to get Microsoft Office 2007 to run correctly once it has been installed some overrides may be necessary. See below for instructions."

"Do not install riched20 with winetricks. Office 2007 installs its own version of riched20.")

Because myself had already installed those long lists of winetricks mentioned above, I had to uninstall and reinstall Wine completely before proceeding as stated below.

The problems appear with certain versions of Wine.

The solution is to keep oneself updated to the WineHQ instructions.

Latest versions of Wine are best. Also, latest versions of Office (2007 and 2010) are easier to install than the older ones.

The safest would be to install Office 2007 after a fresh installation of Wine 1.5 (present latest: I will update in time).

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.5

Go to Menu, 'Configure Wine' and make sure your version of wine is set to Windows XP.

enter image description here

Install Office 2007. (Open the disk and right click on setup.exe and select "Open with wine windows program loader.") The progress bar in the installer window may stop when it reaches about 2/3 of the way. The installation is continuing, even though the progress bar is not moving. Wait for it to finish.

After installation:

In 'Configure Wine', under the Libraries tab in the area labeled "New override for library" type in riched20.dll and click on Add. You will see it appear in the list below. Now select the riched20 in the list that we just added and click on the Edit button. Set it to Native (Windows) and click OK.

enter image description here

This will allow Powerpoint and the other applications to run correctly.


What comes bellow I did it beyond what what the above site says, so it might involve certain risks. It seems that it is very important not to use winetricks and so on before installing as stated here and at the WineHQ address.


Optionally, what I did was to install all fonts and improve appearance like here.

Also, I like to have the classic menus (XP/2003) at hand, added in a tab beside the new ones: there are different addons for that but the one I use in Windows7 doesn't seem to work in Wine so I have installed this, which is add-supported. (Please give me a comment with a link to one that is cleaner and works as expected if you find one.)


The SaveAsPDFandXPS add-in appears to be working as expected.

share|improve this answer

You could give playonlinux a try. It has fairly decent office 2007 tools. Just start playonlinux and install office 2007 using either cd or an .exe file. Under 12.10 it works relatively fine, but it does not support typing Hebrew, Arabic and so (unless you configure them). Also installing add-ons (bibliography managers and the like) is all but obvious.

share|improve this answer
    
considering the possibility of regressions in wine, using different wine versions at the same time would be great: and playonlinux might be able to provide this (have not tried it myself but this feature surely deserves to be tested): ubuntu.igameilive.com/2010/02/… –  cipricus Feb 19 '13 at 23:44
    
also: askubuntu.com/q/245900/47206 –  cipricus Feb 19 '13 at 23:49

Yes, wine supports installing Office 2007. I recently installed it on my laptop and as you said, it didn't give any errors while installing but when you try to save and close the document, it pops up 2-3 error messages, which if you read carefully, can be safely ignored. However, as you said, PowerPoint does not seem to start easily from the dash. To open PowerPoint, open a Terminal and go the path where you have installed Office and type

wine PPTVIEW.EXE

To locate where you have installed Office, type

locate PPTVIEW.EXE

on the terminal, which will indirectly give you the path where Office is installed.

If you are not able to open a document, then please post the output of

wine /home/$USER/.wine/drive_c/Program\ Files\ \(x86\)/Microsoft\ Office/Office12/PPTVIEW.EXE

of whatever path Office is installed on as a comment to this answer.

share|improve this answer
    
I have no error on saving as far as I can tell. See my answer with that WineHQ link - there seem to be a lot of errors possible outside the framework that is clearly stated there: no winetricks in order to install, and so on. fresh wine install is what i've used –  cipricus Feb 19 '13 at 20:01
    
Are you talking about the messages that you get on terminal when you install/open one of these applications like Word or Excel or PowerPoint? If yes, you can safely ignore them, as they are not error messages, they are either warnings or simple execution time messages. –  i08in Feb 19 '13 at 20:05
    
I have no errors or message errors whatsoever: I was referring to possible errors like the ones you report, which might be related to not following strictly these instructions (appdb.winehq.org/objectManager.php?sClass=version&iId=4992) –  cipricus Feb 19 '13 at 20:07
    
Yes, I was addressing you @cipricus. Sorry not to have mentioned you. Then that's great, great going! –  i08in Feb 19 '13 at 20:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.