Error Trying to install Vanilla Wine 1.0

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
fergatron
Level 2
Level 2
Posts: 15
Joined: Fri Mar 28, 2008 6:06 pm

Error Trying to install Vanilla Wine 1.0

Post by fergatron »

I tried to install Wine 1.0 from source and it gives me this error. I've posted the "config.log" file here: http://pastebin.org/52284

Code: Select all

[marc@unicron wine-1.0]$ sudo ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc -m32
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
[marc@unicron wine-1.0]$ 
I believe the problem is around line 77, but I'm unclear what to do.

I am running Fedora 9 and I originally installed it using YUM install wine. Based on the great support I got from the IRC channel (Eduard_Munteanu and oiaohm) - they suggested I install a vanilla version of of Wine 1.0, from src, and not go with the version supplied by Fedora (Wine 1.0-1).
jeffz
Level 5
Level 5
Posts: 345
Joined: Thu Mar 13, 2008 10:03 pm

Re: Error Trying to install Vanilla Wine 1.0

Post by jeffz »

fergatron wrote:I tried to install Wine 1.0 from source and it gives me this error. I've posted the "config.log" file here: http://pastebin.org/52284

Code: Select all

[marc@unicron wine-1.0]$ sudo ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc -m32
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
[marc@unicron wine-1.0]$ 
I believe the problem is around line 77, but I'm unclear what to do.

I am running Fedora 9 and I originally installed it using YUM install wine. Based on the great support I got from the IRC channel (Eduard_Munteanu and oiaohm) - they suggested I install a vanilla version of of Wine 1.0, from src, and not go with the version supplied by Fedora (Wine 1.0-1).

* Do not run configure as root.
* You need to install development packages for your distro
* http://wiki.winehq.org/WineOn64bit
fergatron
Level 2
Level 2
Posts: 15
Joined: Fri Mar 28, 2008 6:06 pm

Post by fergatron »

Hi,

Thanks for the reply. I went on a weeks vacation, thus the very late response to yours.
  • I'm running "sudo" because I extracted the files to my /usr folder and my user account doesn't have write access to that directory. I was able to put it into the sudoers list though. To be specific, I put my src files in /usr/local/share/applications/wine-1.0 folder.
  • Thanks for the link to the 64-bit info. That was very helpful. I read it, copied and pasted the YUM command to install those extra packages, but I'm still running into an error when I compile.

Code: Select all

[marc@unicron wine-1.0]$ ./configure
./configure: line 1504: config.log: Permission denied
./configure: line 1514: config.log: Permission denied
[marc@unicron wine-1.0]$ sudo ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc -m32
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
[marc@unicron wine-1.0]$ 
I've posted the contents of the 'config.log' file to see if anyone can make sense of it. http://pastebin.org/57452
fergatron
Level 2
Level 2
Posts: 15
Joined: Fri Mar 28, 2008 6:06 pm

Post by fergatron »

Romster from the chat room told me I was missing a 32-bit compiler since I'm running a 64-bit system. I was gcc 32 that was missing. I looked in my /usr/bin folder and found 'gcc' and 'gcc34'. So; I then ran the command:

Code: Select all

CC='gcc34' ./configure
..and all is well now.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

fergatron wrote:I'm running "sudo" because I extracted the files to my /usr folder and my user account
Don't do that! There are reasons why you can't access those directories on the standard system - because you should not. If you really want to dump something into /usr use /usr/local instead. For Wine source just put in under /usr/local/src. And you can use sudo to change permissions on that dir.
fergatron wrote:checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
Read this http://wiki.winehq.org/WineOn64bit and this http://wiki.winehq.org/Recommended_Packages
Locked