Non-Debuntu Distros

na
nathan28
Posts: 1
Joined: Wed Aug 03, 2011 2:05 am
Platform: Linux

Wed Aug 03, 2011 3:05 am Post

If anyone runs into dependency issues that prevent the linux beta from loading I have a solution. I had been using the beta in Ubuntu 10.04 but now I'm using Arch 64-bit, and did the following to get Scrivener to stop complaining. It's not elegant but this should be distro- and architecture-neutral for anyone using Bash. If you don't know what Bash is, you're probably using it.

Perform at your own risk. You could get electrocuted or spill coffee all over your hard drive.

Here's the steps to solve the problem.

1. Download and extract the tarball to a directory, preferably somewhere kosher, like ~.
2. You'll need to copy or move the files from each directory in LiteratureAndLatte/plugins/ into LiteratureAndLatte/lib/. Open a terminal window.

$ mv /home/[YOUR_USER_LOGIN]/LiteratureAndLatte/plugins/codecs/* \
/home/[YOUR_USER_LOGIN]/LiteratureAndLatte/plugins/iconengines/* \
/home/[YOUR_USER_LOGIN]/LiteratureAndLatte/plugins/imageformats/* \
/home/[YOUR_USER_LOGIN]/LiteratureAndLatte/plugins/phonon_backend/* \
/home/[YOUR_USER_LOGIN]/LiteratureAndLatte/lib/


Alternatively, just drag and drop the contents of each ./plugins directory into the ./lib directory from your file browser.

3. Now we have all the dependencies Scrivener is looking for corralled. So we need to point Scrivener to them. Use a script.

$ cd /home/[YOUR_USER_LOGIN]/LiteratureAndLatte/bin/
$ touch scrivener.sh
$ vi scrivener.sh


If vi scares you, use gedit, nano, kwrite, geany, or whatever your favorite text editor is instead. Paste the following into the script:

#!/bin/sh

# This script tells Scrivener Beta to where look for the
# dependencies it comes with in the tarball
# since it gets cranky otherwise.
# No guarantees or material representations are made about this script.
# GPL applies.

export LD_LIBRARY_PATH=/home/[YOUR_USER_LOGIN]/LiteratureAndLatte/lib::$LD_LIBRARY_PATH

/home/[YOUR_USER_LOGIN]/LiteratureAndLatte/bin/Scrivener @$


4. Now make the script executable.
$ chmod 755 scrivener.sh


5. To run Scrivener, type "/home/bast/LiteratureAndLatte/bin/scrivener.sh" from anywhere. If you want to feel fancy, do an $ echo $PATH and move scrivener.sh into one of those directories and "scrivener.sh" will work from anywhere. You can also add the script to a menu.

Nothing here should affect anything outside the Scrivener directory. It's really Windows-style to do this but it keeps the rogue dependencies with the offending program for easy removal.

el
elmago79
Posts: 70
Joined: Wed Apr 06, 2011 8:16 am
Platform: Mac + Windows
Location: Mexico City
Contact:

Wed Aug 03, 2011 8:16 am Post

Two questions:

1. Are you able to insert any type of image into your project? Does the built-in web-browser works?

2. Are you suffering from this bug?