Wine (5 and 6) libraries and memory error on Leap 15.2?

Hi all.

I’m having some issues with wine. I never used it before, however now I’m going to need to run one very specific piece of software (FACIO: http://zzzfelis.sakura.ne.jp/index.html ) that is supposed to work on linux via wine.

However, my wine installation itself is not working at all:


**> wine --version**
wine-5.0

**> ****winecfg 
**/usr/bin/wine: error while loading shared libraries: cannot create cache for search path: Cannot allocate memory

**> winetricks  **------------------------------------------------------
You are running winetricks-20200412, latest upstream is winetricks-20201206!
------------------------------------------------------
------------------------------------------------------
You should update using your distribution's package manager, --self-update, or manually.
------------------------------------------------------
Executing mkdir -p /home/jones
ls: não foi possível acessar '/home/jones/.wine/drive_c': Arquivo ou diretório não encontrado
grep: /home/jones/.wine/*.reg: Arquivo ou diretório não encontrado
------------------------------------------------------
WINEPREFIX INFO:
Drive C:  

Registry info:
/home/jones/.wine/*.reg:
------------------------------------------------------
------------------------------------------------------
wine cmd.exe /c echo '%AppData%' returned empty string, error message "/usr/bin/wine: error while loading shared libraries: 
cannot create cache for search path: Cannot allocate memory"  
------------------------------------------------------

The output is for wine vesion 5.0, but I already tested it with wine 6.0 with the same issue… :frowning:

Does anybody have any idea on what is going on and how to solve it?

Thanks a lot in advance.

how did you install wine

try this

rm .wine

sudo zypper in -f wine

then

wine

it should ask to download stuff that is missing

that is how I have wine working.

Hi @larryr

First I installed it from yast, later 1-click install. Now used zypper as suggested (sorry for the portuguese language system):


**> sudo zypper rm wine**
[sudo] senha para root:  
Lendo os pacotes instalados...
Resolvendo dependências de pacote...

Os seguintes 5 pacotes serão REMOVIDOS:
  libwinestuff wine winegame wine-mono winetricks

5 pacotes para remover.
Após a operação, 292,9 MiB será liberado.
**Continuar? [s/n/v/...? exibe todas as opções] (s): ** 
(1/5) Removendo wine-mono-5.0.0-lp152.1.1.noarch ................................................................[concluído]
(2/5) Removendo winegame-0.2.0-lp152.1.4.x86_64 .................................................................[concluído]
(3/5) Removendo winetricks-20200412-lp152.1.1.x86_64 ............................................................[concluído]
(4/5) Removendo libwinestuff-0.2.0-lp152.2.1.x86_64 .............................................................[concluído]
Saída adicional do rpm:
/sbin/ldconfig: /usr/lib64/libvglfaker.so is not a symbolic link                                                             
                                                                                                                             
                                                                                                                             
                                                                                                                             
(5/5) Removendo wine-5.0-lp152.1.2.x86_64 .......................................................................[concluído]

**> sudo zypper in wine**
Carregando dados do repositório...
Lendo os pacotes instalados...
Resolvendo dependências de pacote...

Problema: wine-6.0-lp152.1255.1.x86_64 requer wine-32bit = 6.0, mas este requisito não pode ser fornecido
  fornecedores não instaláveis: wine-32bit-6.0-lp152.1255.1.x86_64[openSUSE_Leap_15.2_5]
 Solução 1: As seguintes ações serão realizadas:
  instalar wine-32bit-6.0-lp152.1255.1.x86_64 (com alteração do fornecedor)
    openSUSE  -->  obs://build.opensuse.org/Emulators
  instalar wine-gecko-2.47.2-lp152.63.1.noarch (com alteração do fornecedor)
    openSUSE  -->  obs://build.opensuse.org/Emulators
 Solução 2: não instalar wine-6.0-lp152.1255.1.x86_64
 Solução 3: quebrar wine-6.0-lp152.1255.1.x86_64 ao ignorar algumas das dependências

**Escolha uma das opções acima pelo número ou cancele [1/2/3/c/d/?] (c): **1
Resolvendo dependências...
Resolvendo dependências de pacote...

Os seguintes 3 pacotes NOVOS serão instalados:
  wine wine-mono winetricks

Os seguintes 2 pacotes serão atualizados:
  wine-32bit wine-gecko

Os seguintes 2 pacotes recomendados foram selecionados automaticamente:
  wine-mono winetricks

Os seguintes 2 pacotes irão alterar de fornecedor:
  wine-32bit  openSUSE -> obs://build.opensuse.org/Emulators
  wine-gecko  openSUSE -> obs://build.opensuse.org/Emulators

2 pacotes a atualizar, 3 novos, 2 para alterar de fornecedor.
Tamanho total do download: 278,3 MiB. Já em cache: 0 B. Após a operação, 905,1 MiB adicionais serão utilizados.
**Continuar? [s/n/v/...? exibe todas as opções] (s): ** 
Baixando pacote wine-32bit-6.0-lp152.1255.1.x86_64                                (1/5),  57,9 MiB (419,6 MiB descompactado)
Baixando: wine-32bit-6.0-lp152.1255.1.x86_64.rpm ..................................................[concluído (490,4 KiB/s)]
Baixando pacote wine-gecko-2.47.2-lp152.63.1.noarch                               (2/5),  83,7 MiB (235,6 MiB descompactado)
Baixando: wine-gecko-2.47.2-lp152.63.1.noarch.rpm .................................................[concluído (467,7 KiB/s)]
Baixando pacote wine-6.0-lp152.1255.1.x86_64                                      (3/5),  62,0 MiB (485,3 MiB descompactado)
Baixando: wine-6.0-lp152.1255.1.x86_64.rpm ........................................................[concluído (479,0 KiB/s)]
Baixando pacote wine-mono-5.0.0-lp152.1.1.noarch                                  (4/5),  74,5 MiB ( 75,9 MiB descompactado)
Baixando: wine-mono-5.0.0-lp152.1.1.noarch.rpm ......................................................[concluído (2,3 MiB/s)]
Baixando pacote winetricks-20200412-lp152.1.1.x86_64                              (5/5), 179,0 KiB (922,3 KiB descompactado)
Baixando: winetricks-20200412-lp152.1.1.x86_64.rpm ................................................[concluído (149,9 KiB/s)]

Verificando por conflito de arquivos: ...........................................................................[concluído]
(1/5) Instalando: wine-32bit-6.0-lp152.1255.1.x86_64 ............................................................[concluído]
Saída adicional do rpm:
/sbin/ldconfig: /usr/lib64/libvglfaker.so is not a symbolic link                                                             
                                                                                                                             
                                                                                                                             
                                                                                                                             
(2/5) Instalando: wine-gecko-2.47.2-lp152.63.1.noarch ...........................................................[concluído]
(3/5) Instalando: wine-6.0-lp152.1255.1.x86_64 ..................................................................[concluído]
Saída adicional do rpm:
/sbin/ldconfig: /usr/lib64/libvglfaker.so is not a symbolic link                                                             
                                                                                                                             
                                                                                                                             
                                                                                                                             
(4/5) Instalando: wine-mono-5.0.0-lp152.1.1.noarch ..............................................................[concluído]
(5/5) Instalando: winetricks-20200412-lp152.1.1.x86_64 ..........................................................[concluído]

Unfortunatelly, while it does seems to work at first glance, it’s actually still not working:


**> ****winecfg
**/usr/bin/wine: error while loading shared libraries: cannot create cache for search path: Cannot allocate memory

**> winetricks  
**------------------------------------------------------
You are running winetricks-20200412, latest upstream is winetricks-20201206!
------------------------------------------------------
------------------------------------------------------
You should update using your distribution's package manager, --self-update, or manually.
------------------------------------------------------
Executing mkdir -p /home/jones
ls: não foi possível acessar '/home/jones/.wine/drive_c': Arquivo ou diretório não encontrado
grep: /home/jones/.wine/*.reg: Arquivo ou diretório não encontrado
------------------------------------------------------
WINEPREFIX INFO:
Drive C:  

Registry info:
/home/jones/.wine/*.reg:
------------------------------------------------------
------------------------------------------------------
wine cmd.exe /c echo '%AppData%' returned empty string, error message "/usr/bin/wine: error while loading shared libraries: 
cannot create cache for search path: Cannot allocate memory"  
------------------------------------------------------

Any clues?

Here is what I have installed

VM1:~ # zypper se -si wine
Loading repository data...
Reading installed packages...

S  | Name       | Type    | Version            | Arch   | Repository
---+------------+---------+--------------------+--------+---------------------------
i+ | wine       | package | 5.0-lp152.1.2      | x86_64 | openSUSE-Leap-15.2-Oss
i  | wine-32bit | package | 5.0-lp152.1.2      | x86_64 | openSUSE-Leap-15.2-Oss
i  | wine-gecko | package | 2.47.1-lp152.1.1   | noarch | openSUSE-Leap-15.2-Oss
i  | wine-mono  | package | 5.0.0-lp152.1.1    | noarch | openSUSE-Leap-15.2-Non-Oss
i  | winetricks | package | 20200412-lp152.1.1 | x86_64 | openSUSE-Leap-15.2-Oss
VM1:~ # zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                | Name                              | Enabled | GPG Check | Refresh
---+----------------------+-----------------------------------+---------+-----------+--------
 1 | Packman              | Packman 15.2 Repository           | Yes     | (r ) Yes  | Yes
 2 | X11_MATE_Current     | MATE openSUSE_Leap_15.2           | No      | ----      | ----
 3 | adobe                | adobe                             | No      | ----      | ----
 4 | mozilla              | mozilla                           | No      | ----      | ----
 5 | openSUSE-Leap-15.2-1 | openSUSE-Leap-15.2-1              | No      | ----      | ----
 6 | repo-non-oss         | openSUSE-Leap-15.2-Non-Oss        | Yes     | (r ) Yes  | Yes
 7 | repo-oss             | openSUSE-Leap-15.2-Oss            | Yes     | (r ) Yes  | Yes
 8 | repo-update          | openSUSE-Leap-15.2-Update         | Yes     | (r ) Yes  | Yes
 9 | repo-update-non-oss  | Update Repository (Non-Oss)       | Yes     | (r ) Yes  | Yes
10 | repo-virtualization  | openSUSE-Leap-15.2-Virtualization | No      | ----      | ----
11 | skype-stable         | Skypeforlinux - stable            | Yes     | (r ) Yes  | No
12 | teamviewer           | TeamViewer - x86_64               | Yes     | (r ) Yes  | No
VM1:~ # 


so I would zypper in -f wine wine-32bit wine-gecko wine-mono wintricks

make sure that all the repo- that say yes are in your repos

Hi larryr

First: with the exception of “skype-stable” and “teamviewer” I have all yout repositories (and more).

Second, there was a mismatch between packages due to the presence of the Education Repository here. So, I removed wine again, disallowed the Education repository (temporarily), reinstalled wine with zypper to have the exact same install as you and tested, for again no success:


**> zypper se -si wine
**Erro ao construir o cache:
[openSUSE_Leap_15.2_11|http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_Leap_15.2/] Metadados vá
lidos não encontrados na URL especificada                                                                                    
Histórico:                                                                                                                   
 - Não foi possível criar o diretório do cache de metadados.                                                                 
                                                                                                                             
Aviso: O cache de metadados necessita ser construído para o repositório 'Apache Standard PHP Modules:Applications Repository
'. Você pode executar 'zypper refresh' como root para fazer isso.
Aviso: Ignorando o repositório 'Apache Standard PHP Modules:Applications Repository' devido ao erro acima.
Alguns dos repositórios não foram atualizados devido a um erro.
Carregando dados do repositório...
Lendo os pacotes instalados...

S  | Name       | Type   | Version            | Arch        | Repository
---+------------+--------+--------------------+-------------+-------------------
i+ | wine       | pacote | 5.0-lp152.1.2      | x86_64      | Main Repository
i  | wine-32bit | pacote | 5.0-lp152.1.2      | x86_64      | Main Repository
i  | wine-gecko | pacote | 2.47.1-lp152.1.1   | noarch      | Main Repository
i  | wine-mono  | pacote | 5.0.0-lp152.1.1    | noarch      | Non-OSS Repository
i  | winetricks | pacote | 20200412-lp152.1.1 | x86_64      | Main Repository
jones@localhost:~/src/gpgpu/gamess.2020.09.30.R2/libcchem/externals/boost/boost_1_46_1> wine
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit

**> winecfg
**/usr/bin/wine: error while loading shared libraries: cannot create cache for search path: Cannot allocate memory

**> winetricks
**------------------------------------------------------
You are running winetricks-20200412, latest upstream is winetricks-20201206!
------------------------------------------------------
------------------------------------------------------
You should update using your distribution's package manager, --self-update, or manually.
------------------------------------------------------
Executing mkdir -p /home/jones
ls: não foi possível acessar '/home/jones/.wine/drive_c': Arquivo ou diretório não encontrado
grep: /home/jones/.wine/*.reg: Arquivo ou diretório não encontrado
------------------------------------------------------
WINEPREFIX INFO:
Drive C:  

Registry info:
/home/jones/.wine/*.reg:
------------------------------------------------------
------------------------------------------------------
wine cmd.exe /c echo '%AppData%' returned empty string, error message "/usr/bin/wine: error while loading shared libraries: 
cannot create cache for search path: Cannot allocate memory"  
------------------------------------------------------

Still failing with the same error (kind of a reminder of why I left windows more than a decade ago)… :frowning:

Any suggestions?

How much memory do you have and swap? can I see the following on your machine.

VM1:~ # cat /proc/meminfo | head
MemTotal:        5048160 kB
MemFree:         1369992 kB
MemAvailable:    2003756 kB
Buffers:          107840 kB
Cached:          1019712 kB
SwapCached:           24 kB
Active:          2815760 kB
Inactive:         611148 kB
Active(anon):    2070480 kB
Inactive(anon):   549256 kB
VM1:~ # swapon -v
NAME      TYPE      SIZE USED PRIO
/dev/sda2 partition   4G   1M   -2
VM1:~ # uname -a
Linux VM1 5.3.18-lp152.60-default #1 SMP Tue Jan 12 23:10:31 UTC 2021 (9898712) x86_64 x86_64 x86_64 GNU/Linux
VM1:~ # 


If that is good - something else is missing that is supposed to be there - we may need to do a zypper dup -f to force reinstalling all the installed software

Hi larryr:


**> cat /proc/meminfo | head
**MemTotal:        7981064 kB
MemFree:          813360 kB
MemAvailable:    4508404 kB
Buffers:              24 kB
Cached:          4226932 kB
SwapCached:        74276 kB
Active:          4870292 kB
Inactive:        1657512 kB
Active(anon):    2032488 kB
Inactive(anon):   603412 kB

**> sudo swapon -v
**[sudo] senha para root:  
NAME      TYPE      SIZE  USED PRIO
/dev/dm-1 partition  16G 74,8M   -2

**> uname -a
**Linux localhost.localdomain 5.3.18-lp152.60-default #1 SMP Tue Jan 12 23:10:31 UTC 2021 (9898712) x86_64 x86_64 x86_64 GNU/Linux

A zypper dup won’t be an option here… any other suggestion?

Use Wine 6.0 from Experimental repos.
Use prefix “LANG=C” to get output in english.

Please use LANG=C to get an English output and we can read it.

f.e.:

LANG=C zypper se -si wine

Here:

LANG=C zypper se -si sabn
Loading repository data...
Reading installed packages...
No matching items found.

vs

zypper se -si sabn
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...
Keine passenden Objekte gefunden.

Ok. Right now I have:


**> LANG=C zypper se -si wine   
**Error building the cache:
[openSUSE_Leap_15.2_11|http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_Leap_15.2/] Valid metada
ta not found at specified URL                                                                                                
History:                                                                                                                     
 - Can't create metadata cache directory.                                                                                    
                                                                                                                             
Warning: The metadata cache needs to be built for the 'Apache Standard PHP Modules:Applications Repository' repository. You 
can run 'zypper refresh' as root to do this.
Warning: Skipping repository 'Apache Standard PHP Modules:Applications Repository' because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Reading installed packages...

S  | Name       | Type    | Version            | Arch   | Repository
---+------------+---------+--------------------+--------+-------------------
i+ | wine       | package | 5.0-lp152.1.2      | x86_64 | Main Repository
i  | wine-32bit | package | 5.0-lp152.1.2      | x86_64 | Main Repository
i  | wine-gecko | package | 2.47.1-lp152.1.1   | noarch | Main Repository
i  | wine-mono  | package | 5.0.0-lp152.1.1    | noarch | Non-OSS Repository
i  | winetricks | package | 20200412-lp152.1.1 | x86_64 | Main Repository
**
> winecfg
**/usr/bin/wine: error while loading shared libraries: cannot create cache for search path: Cannot allocate memory

Removing it with zypper and using the “Education Repository” version:


**> LANG=C zypper se -si wine
**Loading repository data...
Reading installed packages...

S  | Name       | Type    | Version            | Arch   | Repository
---+------------+---------+--------------------+--------+----------------------
i+ | wine       | package | 6.0-lp152.1255.1   | x86_64 | Education Respository
i  | wine-32bit | package | 6.0-lp152.1255.1   | x86_64 | Education Respository
i  | wine-gecko | package | 2.47.2-lp152.63.1  | noarch | Education Respository
i  | wine-mono  | package | 5.0.0-lp152.1.1    | noarch | Non-OSS Repository
i  | winetricks | package | 20200412-lp152.1.1 | x86_64 | Main Repository

**> winecfg
**/usr/bin/wine: error while loading shared libraries: cannot create cache for search path: Cannot allocate memory

Removing once again, disabling “Education” and enabling “Emulators:Wine” again:


**> LANG=C zypper se -si wine
**Loading repository data...
Reading installed packages...

S  | Name       | Type    | Version             | Arch   | Repository
---+------------+---------+---------------------+--------+---------------
i+ | wine       | package | 6.0-lp152.1255.1    | x86_64 | Emulators:Wine
i  | wine-32bit | package | 6.0-lp152.1255.1    | x86_64 | Emulators:Wine
i  | wine-gecko | package | 2.47.2-lp152.63.1   | noarch | Emulators:Wine
i  | wine-mono  | package | 5.1.1-lp152.23.1    | noarch | Emulators:Wine
i  | winetricks | package | 20201206-lp152.29.1 | x86_64 | Emulators:Wine

**> winecfg
**/usr/bin/wine: error while loading shared libraries: cannot create cache for search path: Cannot allocate memory

All cases still having troubles… :frowning:

Suggestions?

My guess is your path environment variable is too big or env is too large or a shell issue

what is

llrainey@VM1:~> env | grep PATH
ALSA_CONFIG_PATH=/etc/alsa-pulse.conf
XNLSPATH=/usr/share/X11/nls
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
MANPATH=/usr/local/man:/usr/share/man
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
PATH=/home/llrainey/bin:/usr/local/bin:/usr/bin:/bin
llrainey@VM1:~> env | wc
     92     101    3231
llrainey@VM1:~> env | grep SHELL
SHELL=/bin/bash
llrainey@VM1:~> 

Well, my path is a bit longer…


**> env | grep PATH
**LD_LIBRARY_**PATH**=/usr/local/cuda-11.2/lib64:/home/johannes/bin/gmx18.8/lib64:/usr/local/cuda-11.2/lib64:/opt/intel/oneapi/ita
c/2021.1.1/slib:/opt/intel/oneapi/debugger/10.0.0/dep/lib:/opt/intel/oneapi/debugger/10.0.0/libipt/intel64/lib:/opt/intel/on
eapi/debugger/10.0.0/gdb/intel64/lib:/opt/intel/oneapi/dnnl/2021.1.1/cpu_dpcpp_gpu_dpcpp/lib:/opt/intel/oneapi/ccl/2021.1.1/
lib/cpu_gpu_dpcpp:/opt/intel/oneapi/mpi/2021.1.1//libfabric/lib:/opt/intel/oneapi/mpi/2021.1.1//lib/release:/opt/intel/oneap
i/mpi/2021.1.1//lib:/opt/intel/oneapi/dal/2021.1.1/lib/intel64:/opt/intel/oneapi/ipp/2021.1.1/lib/intel64:/opt/intel/oneapi/
ippcp/2021.1.1/lib/intel64:/opt/intel/oneapi/mkl/latest/lib/intel64:/opt/intel/oneapi/vpl/2021.1.1/lib:/opt/intel/oneapi/com
piler/2021.1.1/linux/lib:/opt/intel/oneapi/compiler/2021.1.1/linux/lib/x64:/opt/intel/oneapi/compiler/2021.1.1/linux/lib/emu
:/opt/intel/oneapi/compiler/2021.1.1/linux/lib/oclfpga/host/linux64/lib:/opt/intel/oneapi/compiler/2021.1.1/linux/lib/oclfpg
a/linux64/lib:/opt/intel/oneapi/compiler/2021.1.1/linux/compiler/lib/intel64_lin:/opt/intel/oneapi/compiler/2021.1.1/linux/c
ompiler/lib:/opt/intel/oneapi/tbb/2021.1.1/env/../lib/intel64/gcc4.8
ACL_BOARD_VENDOR_**PATH**=/opt/Intel/OpenCLFPGA/oneAPI/Boards
ALSA_CONFIG_**PATH**=/etc/alsa-pulse.conf
FI_PROVIDER_**PATH**=/opt/intel/oneapi/mpi/2021.1.1//libfabric/lib/prov:/usr/lib64/libfabric
CLASS**PATH**=/opt/intel/oneapi/mpi/2021.1.1//lib/mpi.jar:/opt/intel/oneapi/dal/2021.1.1/lib/onedal.jar
CCL_ATL_TRANSPORT_**PATH**=/opt/intel/oneapi/ccl/2021.1.1/lib/cpu_gpu_dpcpp
CMAKE_PREFIX_**PATH**=/opt/intel/oneapi/vpl:/opt/intel/oneapi/tbb/2021.1.1/env/..:
XNLS**PATH**=/usr/share/X11/nls
C**PATH**=/opt/intel/oneapi/dnnl/2021.1.1/cpu_dpcpp_gpu_dpcpp/lib:/opt/intel/oneapi/ccl/2021.1.1/include/cpu_gpu_dpcpp:/opt/inte
l/oneapi/mpi/2021.1.1//include:/opt/intel/oneapi/dev-utilities/2021.1.1/include:/opt/intel/oneapi/dpcpp-ct/2021.1.1/include:
/opt/intel/oneapi/dal/2021.1.1/include:/opt/intel/oneapi/ipp/2021.1.1/include:/opt/intel/oneapi/ippcp/2021.1.1/include:/opt/
intel/oneapi/dpl/2021.1.1/linux/include:/opt/intel/oneapi/mkl/latest/include:/opt/intel/oneapi/vpl/2021.1.1/include:/opt/int
el/oneapi/compiler/2021.1.1/linux/include:/opt/intel/oneapi/tbb/2021.1.1/env/../include
NLS**PATH**=/opt/intel/oneapi/mkl/latest/lib/intel64/locale/%l_%t/%N
LIBRARY_**PATH**=/opt/intel/oneapi/clck/2021.1.1/lib/intel64:/opt/intel/oneapi/dnnl/2021.1.1/cpu_dpcpp_gpu_dpcpp/lib:/opt/intel/
oneapi/ccl/2021.1.1/lib/cpu_gpu_dpcpp:/opt/intel/oneapi/mpi/2021.1.1//libfabric/lib:/opt/intel/oneapi/mpi/2021.1.1//lib/rele
ase:/opt/intel/oneapi/mpi/2021.1.1//lib:/opt/intel/oneapi/dal/2021.1.1/lib/intel64:/opt/intel/oneapi/ipp/2021.1.1/lib/intel6
4:/opt/intel/oneapi/ippcp/2021.1.1/lib/intel64:/opt/intel/oneapi/mkl/latest/lib/intel64:/opt/intel/oneapi/vpl/2021.1.1/lib:/
opt/intel/oneapi/compiler/2021.1.1/linux/compiler/lib/intel64_lin:/opt/intel/oneapi/compiler/2021.1.1/linux/lib:/opt/intel/o
neapi/tbb/2021.1.1/env/../lib/intel64/gcc4.8
XDG_SEAT_**PATH**=/org/freedesktop/DisplayManager/Seat0
PYTHON**PATH**=/opt/intel/oneapi/advisor/2021.1.1/pythonapi
MAN**PATH**=/home/johannes/bin/gmx18.8/share/man:/opt/intel/oneapi/itac/2021.1.1/man:/opt/intel/oneapi/clck/2021.1.1/man:/opt/in
tel/oneapi/debugger/10.0.0/documentation/man:/opt/intel/oneapi/mpi/2021.1.1/man:/usr/local/man:/usr/share/man:/opt/kde3/shar
e/man:/opt/intel/oneapi/compiler/2021.1.1/documentation/en/man/common:::
CPLUS_INCLUDE_**PATH**=/opt/intel/oneapi/clck/2021.1.1/include
XDG_SESSION_**PATH**=/org/freedesktop/DisplayManager/Session1
**PATH**=/home/johannes/bin/gmx18.8/bin:.:/usr/local/cuda-11.2/bin:/opt/intel/oneapi/itac/2021.1.1/bin:/opt/intel/oneapi/itac/20
21.1.1/bin:/opt/intel/oneapi/inspector/2021.1.1/bin64:/opt/intel/oneapi/clck/2021.1.1/bin/intel64:/opt/intel/oneapi/debugger
/10.0.0/gdb/intel64/bin:/opt/intel/oneapi/intelpython/latest/bin:/opt/intel/oneapi/intelpython/latest/condabin:/opt/intel/on
eapi/mpi/2021.1.1/libfabric/bin:/opt/intel/oneapi/mpi/2021.1.1/bin:/opt/intel/oneapi/dev-utilities/2021.1.1/bin:/opt/intel/o
neapi/dpcpp-ct/2021.1.1/bin:/opt/intel/oneapi/advisor/2021.1.1/bin64:/opt/intel/oneapi/mkl/latest/bin/intel64:/opt/intel/one
api/vpl/2021.1.1/bin:/opt/intel/oneapi/compiler/2021.1.1/linux/lib/oclfpga/llvm/aocl-bin:/opt/intel/oneapi/compiler/2021.1.1
/linux/lib/oclfpga/bin:/opt/intel/oneapi/compiler/2021.1.1/linux/bin/intel64:/opt/intel/oneapi/compiler/2021.1.1/linux/bin:/
opt/intel/oneapi/compiler/2021.1.1/linux/ioc/bin:/opt/intel/oneapi/vtune/2021.1.1/bin64:.:/usr/local/cuda-11.2/bin:/home/jon
es/bin:/usr/local/bin:/usr/bin:/bin:/opt/kde3/bin:/snap/bin:/home/jones/bin:/home/jones/bin/android-studio/bin:/home/jones/A
ndroid/Sdk/platform-tools:/home/jones/bin:/home/jones/bin/android-studio/bin:/home/jones/Android/Sdk/platform-tools/
PKG_CONFIG_**PATH**=/home/johannes/bin/gmx18.8/lib64/pkgconfig:/opt/intel/oneapi/inspector/2021.1.1/include/pkgconfig/lib64:/opt
/intel/oneapi/advisor/2021.1.1/include/pkgconfig/lib64:/opt/intel/oneapi/mkl/latest/tools/pkgconfig:/opt/intel/oneapi/vtune/
2021.1.1/include/pkgconfig/lib64
INFO**PATH**=/opt/intel/oneapi/debugger/10.0.0/documentation/info/

**> env | grep SHELL
****SHELL**_SESSION_ID=ef73eea953fa4ae7a9293b0750accb3d
**SHELL**=/bin/bash

Your environment is too big - that is why !!!

This is what I would do in new shell to shrink the environment just for wine the bash starts a new environment and exit closes it back to the original


bash
export set LD_LIBRARY_PATH=/home
export set PATH=/usr/local/bin:/usr/bin:/bin
wine
exit

see if that works

Tried a slight modification to make it work here and have all output that could prove itself useful:


*#!/bin/sh
export set LD_LIBRARY_PATH=/home
export set PATH=/usr/local/bin:/usr/bin:/bin
echo $PATH
echo $LD_LIBRARY_PATH
env | grep PATH
winecfg
exit*

And resulted in:

**> ./teste.x  
**/usr/local/bin:/usr/bin:/bin
/home
LD_LIBRARY_PATH=/home
ACL_BOARD_VENDOR_PATH=/opt/Intel/OpenCLFPGA/oneAPI/Boards
ALSA_CONFIG_PATH=/etc/alsa-pulse.conf
FI_PROVIDER_PATH=/opt/intel/oneapi/mpi/2021.1.1//libfabric/lib/prov:/usr/lib64/libfabric
CLASSPATH=/opt/intel/oneapi/mpi/2021.1.1//lib/mpi.jar:/opt/intel/oneapi/dal/2021.1.1/lib/onedal.jar
CCL_ATL_TRANSPORT_PATH=/opt/intel/oneapi/ccl/2021.1.1/lib/cpu_gpu_dpcpp
CMAKE_PREFIX_PATH=/opt/intel/oneapi/vpl:/opt/intel/oneapi/tbb/2021.1.1/env/..:
XNLSPATH=/usr/share/X11/nls
CPATH=/opt/intel/oneapi/dnnl/2021.1.1/cpu_dpcpp_gpu_dpcpp/lib:/opt/intel/oneapi/ccl/2021.1.1/include/cpu_gpu_dpcpp:/opt/intel/oneapi/mpi/2021.1.1//include:/opt/intel/oneapi/dev-utilities/2021.1.1/include:/opt/intel/oneapi/dpcpp-ct/2021.1.1/include:/opt/intel/oneapi/dal/
2021.1.1/include:/opt/intel/oneapi/ipp/2021.1.1/include:/opt/intel/oneapi/ippcp/2021.1.1/include:/opt/intel/oneapi/dpl/2021.1.1/linux/include:/opt/intel/oneapi/mkl/latest/include:/opt/intel/oneapi/vpl/2021.1.1/include:/opt/intel/oneapi/compiler/2021.1.1/linux/include:/o
pt/intel/oneapi/tbb/2021.1.1/env/../include
NLSPATH=/opt/intel/oneapi/mkl/latest/lib/intel64/locale/%l_%t/%N
LIBRARY_PATH=/opt/intel/oneapi/clck/2021.1.1/lib/intel64:/opt/intel/oneapi/dnnl/2021.1.1/cpu_dpcpp_gpu_dpcpp/lib:/opt/intel/oneapi/ccl/2021.1.1/lib/cpu_gpu_dpcpp:/opt/intel/oneapi/mpi/2021.1.1//libfabric/lib:/opt/intel/oneapi/mpi/2021.1.1//lib/release:/opt/intel/oneapi/
mpi/2021.1.1//lib:/opt/intel/oneapi/dal/2021.1.1/lib/intel64:/opt/intel/oneapi/ipp/2021.1.1/lib/intel64:/opt/intel/oneapi/ippcp/2021.1.1/lib/intel64:/opt/intel/oneapi/mkl/latest/lib/intel64:/opt/intel/oneapi/vpl/2021.1.1/lib:/opt/intel/oneapi/compiler/2021.1.1/linux/com
piler/lib/intel64_lin:/opt/intel/oneapi/compiler/2021.1.1/linux/lib:/opt/intel/oneapi/tbb/2021.1.1/env/../lib/intel64/gcc4.8
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
PYTHONPATH=/opt/intel/oneapi/advisor/2021.1.1/pythonapi
MANPATH=/home/johannes/bin/gmx18.8/share/man:/opt/intel/oneapi/itac/2021.1.1/man:/opt/intel/oneapi/clck/2021.1.1/man:/opt/intel/oneapi/debugger/10.0.0/documentation/man:/opt/intel/oneapi/mpi/2021.1.1/man:/usr/local/man:/usr/share/man:/opt/kde3/share/man:/opt/intel/oneap
i/compiler/2021.1.1/documentation/en/man/common
CPLUS_INCLUDE_PATH=/opt/intel/oneapi/clck/2021.1.1/include
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
PATH=/usr/local/bin:/usr/bin:/bin
PKG_CONFIG_PATH=/home/johannes/bin/gmx18.8/lib64/pkgconfig:/opt/intel/oneapi/inspector/2021.1.1/include/pkgconfig/lib64:/opt/intel/oneapi/advisor/2021.1.1/include/pkgconfig/lib64:/opt/intel/oneapi/mkl/latest/tools/pkgconfig:/opt/intel/oneapi/vtune/2021.1.1/include/pkgco
nfig/lib64
INFOPATH=/opt/intel/oneapi/debugger/10.0.0/documentation/info/
/usr/bin/wine: error while loading shared libraries: cannot allocate symbol search list: Cannot allocate memory

Still failing. :frowning: Any other suggestions?

P.S.: Just tried as root, and for some reason winecfg (and facio.exe) opened (after thousands of messages, but whatever). Does anybody have any idea on just what could possibly be going on? I would really not like to have to run a security risk everytime I have to use wine programs… :frowning:

This might do what you want - this ignores all the environment to be like a new user - I have no Idea how much environment wine needs - the old Unix/Linux size never got larger when we went from 16 bit to 32 bit to 64 bit Unix/Linux.

env -i bash --noprofile --norc
env
/usr/bin/wine --version
exit

this is what it should look like

llrainey@VM1:~> env -i bash --noprofile --norc
bash-4.4$ env            
PWD=/home/llrainey
SHLVL=1
_=/usr/bin/env
bash-4.4$ /usr/bin/wine --version
wine-5.0
bash-4.4$ exit
exit
llrainey@VM1:~> 

Still not there.

If I execute the commands in a script, I opens a new bash shell and prompts for commands. When I “exit” from it, it continues to fail in the same position.

Morever, if I excute the commands line by line:


**> env -i bash --noprofile --norc
**
**> env
**PWD=/home/jones/simu/CoViD19/FMO/Facio2313-64
SHLVL=1
_=/usr/bin/env

**> wine
**Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit

**> wine --version
**wine-6.0

**> winecfg
**/usr/bin/wine: error while loading shared libraries: libdl.so.2: cannot create shared object descriptor: Operation not permitted

New error, and the same one happens with “env -i winecfg”… :frowning:

All that was is to prove your environment is the issue. wine --version does not need a gui - winecfg does

There is no XAuthority or display in that special bash.

Your environment has way too much in it and I have no idea on how to shrink it

My next thing for you to do is make a new user and password (make is simple to type)

sudo useradd -m newtest
sudo passwd newtest

now as your user

su - newtest
env
winecfg

If that does not work - your next step would be to install virtualbox and install windows 10 as guest.

Hi larryr.

So seems that since I cannot get rid of Intel compilers nor cuda for that matter, I’ll have to live with the last option.

Thanks a lot anyway for all help! :slight_smile: