Can't get Wine to work

Questions about Wine on Linux
zuqqe
Level 1
Level 1
Posts: 6
Joined: Fri Sep 12, 2014 4:26 am

Can't get Wine to work

Post by zuqqe »

I've been trying to get Wine to work for a couple of hours now without any success so I decided to come here.

I installed Wine following these instructions: http://tecadmin.net/steps-install-wine- ... a-systems/ .

I've tried running Steam and PuTTY with wine so far:

Code: Select all

    [user@Computer-PC Downloads]$ wine putty.exe
    wine: created the configuration directory '/home/user/.wine'
    fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
    err:mscoree:LoadLibraryShim error reading registry key for installroot
    err:mscoree:LoadLibraryShim error reading registry key for installroot
    err:mscoree:LoadLibraryShim error reading registry key for installroot
    err:mscoree:LoadLibraryShim error reading registry key for installroot
    fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
    err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
    fixme:iphlpapi:NotifyAddrChange (Handle 0xd9e318, overlapped 0xd9e330): stub
    err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
    fixme:iphlpapi:NotifyAddrChange (Handle 0xd9e318, overlapped 0xd9e330): stub
    wine: configuration in '/home/user/.wine' has been updated.
    wine: Bad EXE format for Z:\home\user\Downloads\putty.exe.

Code: Select all

    [user@Computer-PC Downloads]$ wine start SteamInstall.msi
    fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
    fixme:exec:SHELL_execute flags ignored: 0x00000100
    [user@Computer-PC Downloads]$ fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
    fixme:msi:event_spawn_wait_dialog doing nothing
    fixme:msi:ITERATE_CreateShortcuts poorly handled shortcut format, advertised shortcut
    wine: Bad EXE format for C:\Program Files (x86)\Steam\Steam.exe.

winecfg -> Drives and I get the message "Failed to connect to the mount manager, the drive configuration cannot be edited."

Weirdly enough, if I remove ~/.wine and let it recreate the configuration files by running winecfg, I can see the default c: drive in Drives(but I get the same problem if I try running a file again).

Thank you!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get Wine to work

Post by dimesio »

zuqqe wrote: I installed Wine following these instructions: http://tecadmin.net/steps-install-wine- ... a-systems/ .
Those instructions are a good example of why we don't support outside howtos. The 32 bit ones are correct, but the instructions for 64 bit will build pure 64 bit Wine, which is not a supported configuration and won't run many things. For a proper WoW64 setup you also need to build 32 bit Wine. http://wiki.winehq.org/Wine64

Note that if you don't have any 64 bit Windows apps you want to run in Wine, it is not necessary to build 64 bit Wine at all.

Code: Select all

    err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
You need to fix that. Fixing that involves installing 32 bit winbind and having a proper WoW64 setup.
winecfg -> Drives and I get the message "Failed to connect to the mount manager, the drive configuration cannot be edited."
The most common cause of that message is that you are missing the needed 32 bit parts of Wine.
zuqqe
Level 1
Level 1
Posts: 6
Joined: Fri Sep 12, 2014 4:26 am

Re: Can't get Wine to work

Post by zuqqe »

dimesio wrote:
zuqqe wrote: I installed Wine following these instructions: http://tecadmin.net/steps-install-wine- ... a-systems/ .
Those instructions are a good example of why we don't support outside howtos. The 32 bit ones are correct, but the instructions for 64 bit will build pure 64 bit Wine, which is not a supported configuration and won't run many things. For a proper WoW64 setup you also need to build 32 bit Wine. http://wiki.winehq.org/Wine64
I'd have used those instructions but I'm new to Linux and can't even understand them completely. For example, what does 'out-of-tree build' mean?

Also, how do I remove wine64 now? I removed all packages I could find but wine64 is still installed.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get Wine to work

Post by dimesio »

zuqqe wrote: I'd have used those instructions but I'm new to Linux and can't even understand them completely. For example, what does 'out-of-tree build' mean?
"Out of tree" means you are in a directory other than the one containing the source code when you build Wine.
Also, how do I remove wine64 now? I removed all packages I could find but wine64 is still installed.
Run make uninstall from the build directory.
zuqqe
Level 1
Level 1
Posts: 6
Joined: Fri Sep 12, 2014 4:26 am

Re: Can't get Wine to work

Post by zuqqe »

dimesio wrote:
zuqqe wrote: I'd have used those instructions but I'm new to Linux and can't even understand them completely. For example, what does 'out-of-tree build' mean?
"Out of tree" means you are in a directory other than the one containing the source code when you build Wine.
Also, how do I remove wine64 now? I removed all packages I could find but wine64 is still installed.
Run make uninstall from the build directory.
Thanks, I got it uninstalled.

Anyway, I'm following the instructions on the wiki now. However I get the following error:

Code: Select all

[user@Computer-PC wine64]$ ../wine-git/configure --enable-win64 CC=usr/local/gcc/bin/gcc
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... usr/local/gcc/bin/gcc
checking whether the C compiler works... no
configure: error: in `/home/sevze/wine64':
configure: error: C compiler cannot create executables
See `config.log' for more details
I suppose this has something to do with my gcc version(I have 4.8.2-16.2.el7_0 installed which, according to http://wiki.winehq.org/GccVersions , isn't supported). Do I have to downgrade gcc or is there a workaround for this?

Oh, I forgot to mention earlier; I'm using CentOS 7 64bit.
Thanks again!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get Wine to work

Post by dimesio »

Code: Select all

configure: error: C compiler cannot create executables
See `config.log' for more details
So what does config.log say?

There is a known issue with GCC 4.8, but that fails in building, not in configure. https://bugs.winehq.org/show_bug.cgi?id=33521
zuqqe
Level 1
Level 1
Posts: 6
Joined: Fri Sep 12, 2014 4:26 am

Re: Can't get Wine to work

Post by zuqqe »

dimesio wrote:

Code: Select all

configure: error: C compiler cannot create executables
See `config.log' for more details
So what does config.log say?

There is a known issue with GCC 4.8, but that fails in building, not in configure. https://bugs.winehq.org/show_bug.cgi?id=33521
config.log:

Code: Select all

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Wine configure 1.7.26, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ../wine-git/configure --enable-win64 CC=usr/local/gcc/bin/gcc

## --------- ##
## Platform. ##
## --------- ##

hostname = Computer-PC.lan
uname -m = x86_64
uname -r = 3.10.0-123.6.3.el7.x86_64
uname -s = Linux
uname -v = #1 SMP Wed Aug 6 21:12:36 UTC 2014

/usr/bin/uname -p = x86_64
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /bin
PATH: /sbin
PATH: /home/user/.local/bin
PATH: /home/user/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:3461: checking build system type
configure:3475: result: x86_64-unknown-linux-gnu
configure:3495: checking host system type
configure:3508: result: x86_64-unknown-linux-gnu
configure:3538: checking whether make sets $(MAKE)
configure:3560: result: yes
configure:3617: checking for gcc
configure:3644: result: usr/local/gcc/bin/gcc
configure:3873: checking for C compiler version
configure:3882: usr/local/gcc/bin/gcc --version >&5
../wine-git/configure: line 3884: usr/local/gcc/bin/gcc: No such file or directory
configure:3893: $? = 127
configure:3882: usr/local/gcc/bin/gcc -v >&5
../wine-git/configure: line 3884: usr/local/gcc/bin/gcc: No such file or directory
configure:3893: $? = 127
configure:3882: usr/local/gcc/bin/gcc -V >&5
../wine-git/configure: line 3884: usr/local/gcc/bin/gcc: No such file or directory
configure:3893: $? = 127
configure:3882: usr/local/gcc/bin/gcc -qversion >&5
../wine-git/configure: line 3884: usr/local/gcc/bin/gcc: No such file or directory
configure:3893: $? = 127
configure:3913: checking whether the C compiler works
configure:3935: usr/local/gcc/bin/gcc    conftest.c  >&5
../wine-git/configure: line 3937: usr/local/gcc/bin/gcc: No such file or directory
configure:3939: $? = 127
configure:3977: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "1.7.26"
| #define PACKAGE_STRING "Wine 1.7.26"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL "http://www.winehq.org"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3982: error: in `/home/user/wine64':
configure:3984: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CAPI20_CFLAGS_set=
ac_cv_env_CAPI20_CFLAGS_value=
ac_cv_env_CAPI20_LIBS_set=
ac_cv_env_CAPI20_LIBS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=usr/local/gcc/bin/gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DBUS_CFLAGS_set=
ac_cv_env_DBUS_CFLAGS_value=
ac_cv_env_DBUS_LIBS_set=
ac_cv_env_DBUS_LIBS_value=
ac_cv_env_FONTCONFIG_CFLAGS_set=
ac_cv_env_FONTCONFIG_CFLAGS_value=
ac_cv_env_FONTCONFIG_LIBS_set=
ac_cv_env_FONTCONFIG_LIBS_value=
ac_cv_env_FREETYPE_CFLAGS_set=
ac_cv_env_FREETYPE_CFLAGS_value=
ac_cv_env_FREETYPE_LIBS_set=
ac_cv_env_FREETYPE_LIBS_value=
ac_cv_env_GNUTLS_CFLAGS_set=
ac_cv_env_GNUTLS_CFLAGS_value=
ac_cv_env_GNUTLS_LIBS_set=
ac_cv_env_GNUTLS_LIBS_value=
ac_cv_env_GPHOTO2_CFLAGS_set=
ac_cv_env_GPHOTO2_CFLAGS_value=
ac_cv_env_GPHOTO2_LIBS_set=
ac_cv_env_GPHOTO2_LIBS_value=
ac_cv_env_GPHOTO2_PORT_CFLAGS_set=
ac_cv_env_GPHOTO2_PORT_CFLAGS_value=
ac_cv_env_GPHOTO2_PORT_LIBS_set=
ac_cv_env_GPHOTO2_PORT_LIBS_value=
ac_cv_env_GSTREAMER_CFLAGS_set=
ac_cv_env_GSTREAMER_CFLAGS_value=
ac_cv_env_GSTREAMER_LIBS_set=
ac_cv_env_GSTREAMER_LIBS_value=
ac_cv_env_HAL_CFLAGS_set=
ac_cv_env_HAL_CFLAGS_value=
ac_cv_env_HAL_LIBS_set=
ac_cv_env_HAL_LIBS_value=
ac_cv_env_JPEG_CFLAGS_set=
ac_cv_env_JPEG_CFLAGS_value=
ac_cv_env_JPEG_LIBS_set=
ac_cv_env_JPEG_LIBS_value=
ac_cv_env_LCMS2_CFLAGS_set=
ac_cv_env_LCMS2_CFLAGS_value=
ac_cv_env_LCMS2_LIBS_set=
ac_cv_env_LCMS2_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_MPG123_CFLAGS_set=
ac_cv_env_MPG123_CFLAGS_value=
ac_cv_env_MPG123_LIBS_set=
ac_cv_env_MPG123_LIBS_value=
ac_cv_env_PNG_CFLAGS_set=
ac_cv_env_PNG_CFLAGS_value=
ac_cv_env_PNG_LIBS_set=
ac_cv_env_PNG_LIBS_value=
ac_cv_env_SANE_CFLAGS_set=
ac_cv_env_SANE_CFLAGS_value=
ac_cv_env_SANE_LIBS_set=
ac_cv_env_SANE_LIBS_value=
ac_cv_env_TIFF_CFLAGS_set=
ac_cv_env_TIFF_CFLAGS_value=
ac_cv_env_TIFF_LIBS_set=
ac_cv_env_TIFF_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_XML2_CFLAGS_set=
ac_cv_env_XML2_CFLAGS_value=
ac_cv_env_XML2_LIBS_set=
ac_cv_env_XML2_LIBS_value=
ac_cv_env_XSLT_CFLAGS_set=
ac_cv_env_XSLT_CFLAGS_value=
ac_cv_env_XSLT_LIBS_set=
ac_cv_env_XSLT_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_prog_ac_ct_CC=usr/local/gcc/bin/gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ALL_TEST_RESOURCES=''
ALL_VARS_RULES=''
ALSA_LIBS=''
APPKIT_LIBS=''
APPLICATIONSERVICES_LIBS=''
AR=''
ARFLAGS=''
BISON=''
BUILTINFLAG=''
CAPI20_CFLAGS=''
CAPI20_LIBS=''
CARBON_LIBS=''
CC='usr/local/gcc/bin/gcc'
CFLAGS=''
CONVERT=''
COREAUDIO_LIBS=''
COREFOUNDATION_LIBS=''
CORESERVICES_LIBS=''
CPP=''
CPPBIN=''
CPPFLAGS=''
CROSSCC=''
CROSSTARGET=''
CUPS_CFLAGS=''
CXX=''
CXXFLAGS=''
DBUS_CFLAGS=''
DBUS_LIBS=''
DEFS=''
DISKARBITRATION_LIBS=''
DLLFLAGS=''
DLLPREFIX=''
DLLTOOL=''
DL_LIBS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRACFLAGS=''
FLEX=''
FONTCONFIG_CFLAGS=''
FONTCONFIG_LIBS=''
FONTFORGE=''
FORCEFEEDBACK_LIBS=''
FREETYPE_CFLAGS=''
FREETYPE_LIBS=''
GETTEXTPO_LIBS=''
GNUTLS_CFLAGS=''
GNUTLS_LIBS=''
GPHOTO2_CFLAGS=''
GPHOTO2_LIBS=''
GPHOTO2_PORT_CFLAGS=''
GPHOTO2_PORT_LIBS=''
GREP=''
GSTREAMER_CFLAGS=''
GSTREAMER_LIBS=''
HAL_CFLAGS=''
HAL_LIBS=''
ICOTOOL=''
IOKIT_LIBS=''
JPEG_CFLAGS=''
JPEG_LIBS=''
KSTAT_LIBS=''
LCMS2_CFLAGS=''
LCMS2_LIBS=''
LDAP_LIBS=''
LDCONFIG=''
LDD=''
LDFLAGS=''
LDRPATH_INSTALL=''
LDRPATH_LOCAL=''
LIBOBJS=''
LIBPCAP=''
LIBS=''
LIBWINE_RULES=''
LINGUAS=''
LN_S=''
LOADER_RULES=''
LTLIBOBJS=''
MPG123_CFLAGS=''
MPG123_LIBS=''
MSGFMT=''
OBJEXT=''
OPENAL_LIBS=''
OPENCL_LIBS=''
OPENGL_LIBS=''
OSS4_CFLAGS=''
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='Wine'
PACKAGE_STRING='Wine 1.7.26'
PACKAGE_TARNAME='wine'
PACKAGE_URL='http://www.winehq.org'
PACKAGE_VERSION='1.7.26'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PNG_CFLAGS=''
PNG_LIBS=''
POLL_LIBS=''
PRELINK=''
PROCSTAT_LIBS=''
PTHREAD_LIBS=''
QUICKTIME_LIBS=''
RANLIB=''
READELF=''
RESOLV_LIBS=''
RSVG=''
RT_LIBS=''
SANE_CFLAGS=''
SANE_LIBS=''
SECURITY_LIBS=''
SET_MAKE=''
SHELL='/bin/sh'
SOCKET_LIBS=''
STRIP=''
TARGETFLAGS=''
TIFF_CFLAGS=''
TIFF_LIBS=''
TOOLSDIR=''
TOOLSEXT=''
UNWINDFLAGS=''
XMKMF=''
XML2_CFLAGS=''
XML2_LIBS=''
XSLT_CFLAGS=''
XSLT_LIBS=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
Z_LIBS=''
ac_ct_AR=''
ac_ct_CC='usr/local/gcc/bin/gcc'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
dlldir=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get Wine to work

Post by dimesio »

Try running configure without the CC=usr/local/gcc/bin/gcc part.
zuqqe
Level 1
Level 1
Posts: 6
Joined: Fri Sep 12, 2014 4:26 am

Re: Can't get Wine to work

Post by zuqqe »

dimesio wrote:Try running configure without the CC=usr/local/gcc/bin/gcc part.
That worked, thank you! I feel like an idiot now.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get Wine to work

Post by dimesio »

Actually, the wiki page was rather misleading on that point. I've corrected it to (hopefully) make it clearer.
zuqqe
Level 1
Level 1
Posts: 6
Joined: Fri Sep 12, 2014 4:26 am

Re: Can't get Wine to work

Post by zuqqe »

I got it to work.

Thank you!
jevvels
Level 2
Level 2
Posts: 18
Joined: Sat Oct 25, 2014 6:27 pm

Re: Can't get Wine to work

Post by jevvels »

Hey,
this thread seems close to my issues, so I'm just going to continue here.

I'm running CentOS 7 64Bit as well and downloaded wine 1.7.28. I then ran

Code: Select all

./configure --enable-win64
but it told me a bunch of files were not found. I've been manually installing the missing files for a while now, this is where I'm at now:

Code: Select all

configure: OpenCL development files not found, OpenCL won't be supported.
configure: libdbus development files not found, no dynamic device support.
configure: libsane development files not found, scanners won't be supported.
configure: libv4l development files not found.
configure: libgphoto2 development files not found, digital cameras won't be supported.
configure: libgphoto2_port development files not found, digital cameras won't be auto-detected.
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libcapi20 development files not found, ISDN won't be supported.
configure: libgsm development files not found, gsm 06.10 codec won't be supported.
configure: libmpg123 development files not found (or too old), mp3 codec won't be supported.
configure: libopenal development files not found (or too old), OpenAL won't be supported.

configure: WARNING: libxslt development files not found, xslt won't be supported.

configure: WARNING: libgnutls development files not found, no schannel support.

configure: WARNING: No sound system was found. Windows applications will be silent.

configure: Finished.  Do 'make' to compile Wine.
Now here are my question:

I've manually installed packages and after rerunning ./configure the particular message was not displayed anymore.... in most cases. But some were recognized as too old, can/should i rebuild srpm's and try installing them (if yes, how to know if the version is 'new' enough)?

Cheers!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get Wine to work

Post by dimesio »

If your sound system is really OSS and not ALSA, you do need v4. Wine will not work with older versions of OSS.

For the other two that say "not found (or too old)," before you try getting something newer, check the config.log to see exactly where ./configure is looking for the files. In many cases those errors are solved with a symlink.
jevvels
Level 2
Level 2
Posts: 18
Joined: Sat Oct 25, 2014 6:27 pm

Re: Can't get Wine to work

Post by jevvels »

Can you tell me, where I have to look in the config.log? It seems like it's too long to post here.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get Wine to work

Post by dimesio »

From what you already posted:

Code: Select all

configure: libmpg123 development files not found (or too old), mp3 codec won't be supported.
configure: libopenal development files not found (or too old), OpenAL won't be supported.
Search the config.log for mention of those two.
jevvels
Level 2
Level 2
Posts: 18
Joined: Sat Oct 25, 2014 6:27 pm

Re: Can't get Wine to work

Post by jevvels »

I've found these passage:

Code: Select all

configure:13136:  cflags: 
configure:13137: libmpg123 libs: -lmpg123
configure:13142: checking mpg123.h usability
configure:13142: gcc -c -g -O2   conftest.c >&5
conftest.c:219:20: fatal error: mpg123.h: No such file or directory
 #include <mpg123.h>
libopenal is not mentioned further in the config.log
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get Wine to work

Post by dimesio »

Code: Select all

conftest.c:219:20: fatal error: mpg123.h: No such file or directory
Does mpg123.h exist in /usr/include? If it does, then your version really is too old. If it exists in some other directory, try making a symlink to it in /usr/include. If it doesn't exist anywhere on your system, you need to install it.

Search the log for openal rather than libopenal.
jevvels
Level 2
Level 2
Posts: 18
Joined: Sat Oct 25, 2014 6:27 pm

Re: Can't get Wine to work

Post by jevvels »

There is no mpg123.h in /usr/include and I didn't find one on the system (assuming i can find it with 'whereis mpg123.h' ?).

Searching for openal result in the following:

Code: Select all

ac_cv_header_OpenAL_al_h=no
...

Code: Select all

OPENAL_LIBS = 
OPENAL_LIBS=''
...

Code: Select all

| #include <IOKit/hid/IOHIDLib.h>
configure:6574: result: no
configure:6574: checking for IOKit/hid/IOHIDLib.h
configure:6574: result: no
configure:6574: checking OpenAL/al.h usability
configure:6574: gcc -c -g -O2  conftest.c >&5
conftest.c:53:23: fatal error: OpenAL/al.h: No such file or directory
 #include <OpenAL/al.h>
...

Code: Select all

| #include <OpenAL/al.h>
configure:6574: result: no
configure:6574: checking OpenAL/al.h presence
configure:6574: gcc -E  conftest.c
conftest.c:20:23: fatal error: OpenAL/al.h: No such file or directory
 #include <OpenAL/al.h>
...

Code: Select all

| #include <OpenAL/al.h>
configure:6574: result: no
configure:6574: checking for OpenAL/al.h
configure:6574: result: no
configure:6574: checking OpenCL/opencl.h usability
configure:6574: gcc -c -g -O2  conftest.c >&5
conftest.c:53:27: fatal error: OpenCL/opencl.h: No such file or directory
 #include <OpenCL/opencl.h>
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get Wine to work

Post by dimesio »

Whereis may not find everything. Use locate. If locate doesn't find the libmpg123 and/or openal headers, then you haven't installed them and need to.

One thing I should make clearer about sound: your version of OSS is too old, and if you really use OSS you need to upgrade it to work with Wine; however, most Linux systems use ALSA, not OSS, and if ALSA is what your system uses, ./configure didn't find it at all, and that's what you need to fix.
jevvels
Level 2
Level 2
Posts: 18
Joined: Sat Oct 25, 2014 6:27 pm

Re: Can't get Wine to work

Post by jevvels »

locate openal and locate libmpg123 both return nothing so i guess that means, they're not installed?
jevvels
Level 2
Level 2
Posts: 18
Joined: Sat Oct 25, 2014 6:27 pm

Re: Can't get Wine to work

Post by jevvels »

I've installed all packages I could find manually, this is were I'm stuck now, aka I can't find the files for those:

Code: Select all

configure: OpenCL development files not found, OpenCL won't be supported.
configure: libhal development files not found, no legacy dynamic device support.
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libmpg123 development files not found (or too old), mp3 codec won't be supported.
configure: libopenal development files not found (or too old), OpenAL won't be supported.

configure: WARNING: No sound system was found. Windows applications will be silent.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get Wine to work

Post by dimesio »

You don't need OpenCL and probably don't need libhal. The others are all related to sound, and the most important one is that no sound system was found. So is your sound system OSS or ALSA? If it's OSS, you have to get version 4 from http://www.opensound.com/oss.html; distros stopped shipping it when it went proprietary. If it's ALSA, the necessary libraries and headers should be in your distro's repository, but you will have to ask your distro which package(s) to install. Packaging and package naming conventions vary by distro, and I don't use CentOS, so I can't help you with that. You should also ask on the CentOS forum where to get libmpg123 and libopenal.

Of course, if you don't intend to run any Windows apps that need sound, don't worry about any of that.
jevvels
Level 2
Level 2
Posts: 18
Joined: Sat Oct 25, 2014 6:27 pm

Re: Can't get Wine to work

Post by jevvels »

For now, I only intend to run Hearthstone ( a Game, but doesn't really need sound) and Microsoft Access on it, so I should be fine.

Thanks for your help!! :D

Edit:

Uhm.. how do I use it after running make and make install? There's no application or anything... :?:
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get Wine to work

Post by dimesio »

jevvels
Level 2
Level 2
Posts: 18
Joined: Sat Oct 25, 2014 6:27 pm

Re: Can't get Wine to work

Post by jevvels »

bash: wine: command not found...
:(
Locked