Comments (8)
Depending on the location of the winetricks
script you may have to adapt the invocation so the shell finds it. Also, I believe winetricks fixed the bug that led me to recommend two invocations instead of one.
If you run which winetricks
and it doesn't output an error message you can run:
env WINEARCH=win32 sh $(which winetricks) arch=32 prefix=supermemo17 supermemo17.verb
Else, just provide the path to winetricks.
- If in the same directory:
env WINEARCH=win32 sh ./winetricks arch=32 prefix=supermemo17 supermemo17.verb
- Other location, e.g.:
env WINEARCH=win32 sh /home/me/some/directory/winetricks arch=32 prefix=supermemo17 supermemo17.verb
from supermemo-wine.
$ which winetricks
/usr/bin/winetricks
$ env WINEARCH=win32 sh /usr/bin/winetricks arch=32 prefix=supermemo17
Executing mkdir -p /home/me
Using winetricks 20200412 - sha256sum: 7651c93e39fcb080483c38836513bf912273a87ea97d137f6b958ed3d9628c3d with wine-5.0 (Ubuntu 5.0-3ubuntu1) and WINEARCH=win32
Executing mkdir -p /home/me/.local/share/wineprefixes
$ sh /usr/bin/winetricks prefix=supermemo17 supermemo17.verb
Executing mkdir -p /home/me/.local/share/wineprefixes
Using winetricks 20200412 - sha256sum: 7651c93e39fcb080483c38836513bf912273a87ea97d137f6b958ed3d9628c3d with wine-5.0 (Ubuntu 5.0-3ubuntu1) and WINEARCH=win32
/usr/bin/winetricks: 7: ./supermemo17.verb: Syntax error: newline unexpected
It looks like supermemo17.verb was updated at some point because I when I redownloaded it now, I got a different hash, but the same error message when I ran the above command.
$ sha256sum supermemo17.verb
1537059b466dcda2630b91d232af6d59f9c65ef2a18f9d7ef771c65c941e0a7e supermemo17.verb
from supermemo-wine.
/usr/bin/winetricks: 7: ./supermemo17.verb: Syntax error: newline unexpected
I need more time to investigate. There is no syntax error in the verb file unless sh
is an unexpected non-POSIX interpreter in your system.
$ sha256sum supermemo17.verb
The sha256sum displayed by Winetricks is of the winetricks script itself, and it is helpful in identifying the version when troubleshooting.
Suggestion: bypass Winetricks's architecture-choosing method completely. Maybe there's some oddity when you have a 64-bit default prefix.
# clean up from previous tries
rm -rf ~/.local/share/wineprefixes/supermemo17
env WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefixes/supermemo17 sh /usr/bin/winetricks supermemo17.verb
from supermemo-wine.
Same error message:
$ rm -rf ~/.local/share/wineprefixes/supermemo17
$ env WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefixes/supermemo17 sh /usr/bin/winetricks supermemo17.verb
Executing mkdir -p /home/me/.local/share/wineprefixes
Using winetricks 20200412 - sha256sum: 7651c93e39fcb080483c38836513bf912273a87ea97d137f6b958ed3d9628c3d with wine-5.0 (Ubuntu 5.0-3ubuntu1) and WINEARCH=win32
/usr/bin/winetricks: 7: ./supermemo17.verb: Syntax error: newline unexpected
I posted the sha256 hash of the supermemo.verb so you could confirm it is the same as the version you have, since I thought maybe the supermemo.verb was causing the error message.
from supermemo-wine.
Thanks again.
OK. Let's see where it fails. Please follow along:
# clean up from previous tries
rm -rf ~/.local/share/wineprefixes/supermemo17
# remove your copy of the verb
rm supermemo17.verb
# grab the supermemo17.verb file byte-for-byte
wget https://raw.githubusercontent.com/alessivs/supermemo-wine/master/verbs/supermemo17.verb -O supermemo17.verb
# send me this output
echo $SHELL
# debug the failure spot: send me the lines above the error message for context
set -x
env WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefixes/supermemo17 sh /usr/bin/winetricks supermemo17.verb
from supermemo-wine.
Just included the complete output. The formatting was strange when I didn't include it in the code brackets, so re-posting:
~$ rm -rf ~/.local/share/wineprefixes/supermemo17
~$ rm supermemo17.verb
~$ wget https://github.com/alessivs/supermemo-wine/blob/master/verbs/supermemo17.verb
--2020-08-21 12:50:48-- https://github.com/alessivs/supermemo-wine/blob/master/verbs/supermemo17.verb
Resolving github.com (github.com)... 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘supermemo17.verb’
supermemo17.verb [ <=> ] 138.37K 603KB/s in 0.2s
2020-08-21 12:50:49 (603 KB/s) - ‘supermemo17.verb’ saved [141687]
~$ echo $SHELL
/bin/bash
~$ set -x
~$ env WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefixes/supermemo17 sh /usr/bin/winetricks supermemo17.verb
+ env WINEARCH=win32 WINEPREFIX=/home/me/.local/share/wineprefixes/supermemo17 sh /usr/bin/winetricks supermemo17.verb
Executing mkdir -p /home/me/.local/share/wineprefixes
Using winetricks 20200412 - sha256sum: 7651c93e39fcb080483c38836513bf912273a87ea97d137f6b958ed3d9628c3d with wine-5.0 (Ubuntu 5.0-3ubuntu1) and WINEARCH=win32
/usr/bin/winetricks: 7: ./supermemo17.verb: Syntax error: newline unexpected
~$
from supermemo-wine.
the problem is that wget command does not download the verb file but html file.
wget https://github.com/alessivs/supermemo-wine/blob/master/verbs/supermemo17.verb
try downloading the verb file by web browser
open https://github.com/alessivs/supermemo-wine/blob/master/verbs/supermemo17.verb
right click the Raw
button and save link as...
env WINEARCH=win32 WINEPREFIX=/home/yourusername/.local/share/wineprefixes/supermemo17 sh /usr/bin/winetricks supermemo17.verb
from supermemo-wine.
Thanks for the catch, @biogogotop. Instructions amended.
from supermemo-wine.
Related Issues (20)
- Make it possible to minimize floating SuperMemo windows (EWMH) HOT 11
- Goldendict <-> Supermem HOT 2
- /usr/bin/winetricks: 7: ./supermemo17.verb: Syntax error: newline unexpected HOT 4
- Can you help guide me through the installation process of SM18 on linux? HOT 2
- Stuck on check out lates version when installing sm18inst.exe
- Font size too small on HiDPI HOT 2
- command wine regedit C:/windows/Temp/set-tabprocgrowth.reg returned status 53. Aborting. HOT 14
- Update all installers
- Internet Explorer and windows managing HOT 2
- Incremental Video and PDF functionality HOT 5
- Screen-size problems/AHK scripts/problems with the toolbar HOT 3
- HTTPS image issue with SuperMemo 18 HOT 1
- Is it possible to use win7 or higher version of wine? xp + ie8 is very slow. HOT 2
- [Bug] changing default stylesheet: SM17 freezes HOT 2
- [Bug] Windows system Error, when trying to edit the default stylesheet HOT 3
- SM18: Error: "Cannot open player device" HOT 8
- URL of file needed for install returns 404 error -> Install fails HOT 3
- SM freezes when using a particular function
- Bug with Toolkit -> Options -> Fonts "use question and answer fonts in HTML" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supermemo-wine.