Environment Variable setting Linux

Questions about Wine on Linux
Locked
arminius
Newbie
Newbie
Posts: 3
Joined: Sat Jan 16, 2016 11:52 am

Environment Variable setting Linux

Post by arminius »

Hello!

I tried to install Profili and therefore I have to Install some additional libs-jet 40 and Mdac.
And there's the cassical jet-40-problem which cannot be installed under 64 bit-systems (See FAQ)

I dug through FAQ and found as an example
export MYENVIRONMENTVAR=myenvironmentvarsetting
for the bash to set it.
And to put it into .bashrc ; I did it as following (see FAQ 7.2):

export WINEPREFIX=/home/arminius/.wine winecfg
export WINEARCH=win32

I fear the 1st line is not correct because it should read
export WINEPREFIX=/home/hermann/.wine/drive_c2
but in ths case a drive_c - directory appears under the drive_c2.

Next:
I start "winetricks" from command line and installation of jet40 is no problem.
(This depends on entry WINEARCH=win32 - see FAQ).
But when I try to install jet 40 from winetricks
started from start menue
than Installation of jet40 fails.
That means that WINEARCH environment variable is not set in this case.

This seems that wine doesn't load .bashrc like explained in FAQ.

I am confused two times.
Maybe I confused the system because I switched from Suse to lubuntu
and the /home-directory - filesystem was kept.

Hermann
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Environment Variable setting Linux

Post by dimesio »

arminius wrote: And to put it into .bashrc ; I did it as following (see FAQ 7.2):

export WINEPREFIX=/home/arminius/.wine winecfg
That's for the command line, not .bashrc. In .bashrc, you should only set the variable, not run any commands (winecfg). And in this case, it's unnecessary to even set the WINEPREFIX variable in .bashrc, because the default wineprefix already is ~/.wine.
I fear the 1st line is not correct because it should read
export WINEPREFIX=/home/hermann/.wine/drive_c2
That would create a wineprefix within a wineprefix, which is a bad idea.
Locked