Linux 1.9.01 Beta Released

Jo
Jonnny
Posts: 1
Joined: Fri Jul 17, 2020 3:29 pm
Platform: Linux

Mon Jul 20, 2020 4:59 pm Post

I too wish to add my thanks.

I am using Debian 10. However, the suggested dependencies do not exist. Does anyone know if I am missing a particular repo?

I should mention that I get this message:

Code: Select all

/usr/share/scrivener/bin/Scrivener: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory


Thanks.

sb
sberla365
Posts: 3
Joined: Sat Nov 07, 2015 5:03 pm
Platform: Mac

Tue Aug 11, 2020 8:18 pm Post

Hi all,

has anybody installed Scrivener on Ubuntu 20.4?
I used the deb package and did both a manual install and through the software manager. Installation was a piece of cake, Scrivener shows up in the apps and everything. Only problem is that it does not run. Any idea?

sc
scshrugged
Posts: 519
Joined: Wed Feb 10, 2016 6:55 pm
Platform: Mac + iOS

Tue Aug 11, 2020 9:02 pm Post

sberla365 wrote:Hi all,

has anybody installed Scrivener on Ubuntu 20.4?
I used the deb package and did both a manual install and through the software manager. Installation was a piece of cake, Scrivener shows up in the apps and everything. Only problem is that it does not run. Any idea?

I have not but yesterday did get the AppImage to somewhat work in Mint Cinnamon 20.

I say work somewhat because I only used it for a few minutes––just repeatedly opened and closed Scrivener and navigated in its Tutorial. I'm not even sure that I installed it properly. I'm a returning Linux newbie so just briefly trying the Scrivener AppImage was a goal for that self-training session as part of my longterm strategy. See the following thread made by @theswede. He's experienced and successfully uses the AppImage. There's a link in his OP to the hosting site. It's well worth a look.

viewtopic.php?f=33&t=57941
I'm a Scrivener user, not an L&L employee.

ju
juliarez
Posts: 1
Joined: Sat Aug 15, 2020 10:11 am
Platform: Linux

Sat Aug 15, 2020 10:40 am Post

sberla365 wrote:Hi all,

has anybody installed Scrivener on Ubuntu 20.4?
I used the deb package and did both a manual install and through the software manager. Installation was a piece of cake, Scrivener shows up in the apps and everything. Only problem is that it does not run. Any idea?


Yes. It's more than likely missing a set of libraries that are no longer supplied/supported in 20.x

This is just in the nature of computers. Things shouldn't break when upgrading minor versions (the 'x' bit in 20.x), but all bets are very much off on major version changes. (16.x -> 18.x, 18.x -> 20.x)

If you want to see what's missing, you can run this in a terminal session:

Code: Select all

ldd /usr/share/scrivener/bin/Scrivener


(Assuming an install from the .deb package)

Finding the packages for the libraries you'll need can be a bit of a faff. For optimum trust, they should come from an Ubuntu archive site. However, I think libpng12 came from some random dropbox a/c that was listed in one of the threads here. I mean, it's probably Just Fine. But, y'know, if I were some black-hatted haxx0r type, that would be a jolly good way of getting someone to install a bank-detail-stealing backdoor...

Anyway.

This is the list of packages that I keep to one side for when I have to re-install Scrivener on a new Ubuntu rig:

Code: Select all

libgstreamer0.10-0_0.10.36-1.5ubuntu1_amd64.deb
libpng12-0_1.2.54-1ubuntu1b_amd64.deb
libgstreamer-plugins-base0.10-0_0.10.36-1_amd64.deb
multiarch-support_2.27-3ubuntu1.2_amd64.deb


If you install them with dependency warnings turned off, you can do without multiarch-support. However, Do Not Do That, because you'll no longer be able to install/upgrade anything else on your machine.

el
elsandkls
Posts: 3
Joined: Mon Aug 24, 2020 11:58 am
Platform: Linux + Windows

Mon Aug 24, 2020 12:11 pm Post

I just reinstalled Scrivener on my Ubuntu box and tried to write a tutorial on the steps. It might help.

http://kidshideaway.net/scrivener-works-under-ubuntu-19

I'm coping with the instructions from the page here, but I'm not sure how well it will look.
Add the sources to the apt config.

Code: Select all

sudo vi /etc/apt/sources.list


Use the editor of your choice, I use vi, not that is a protected file so you must use sudo.

Code: Select all

deb http://us.archive.ubuntu.com/ubuntu/ pool main universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe multiverse


Then run the apt command to install the packages.


Code: Select all

sudo apt-get update
sudo apt-get install multiarch-support*
sudo apt-get install gir1.2-gst* libgstreamer-plugins-base0* libgstreamer0*




If you are still getting errors about adding packages try this:



Code: Select all

sudo apt-get install libgthread* libglib* libgobject*  libgbase* libgmodule* libvisual*




If your getting png errors then try the easy way, and restest, if that doesn't work see below instructions for compiling the module on your install so it will be compatible.


Code: Select all

sudo apt-get install libpng12*

el
elsandkls
Posts: 3
Joined: Mon Aug 24, 2020 11:58 am
Platform: Linux + Windows

Mon Aug 24, 2020 12:12 pm Post

Lingering PNG error solution:

PNG errors - Manual install

Code: Select all

cd /usr/lib/x86_64-linux-gnu/

*** your directory may vary

Code: Select all

apt-get update
apt-get upgrade
apt-get autoremove
sudo apt-get install libtool autoconf build-essential pkg-config automake tcsh
wget http://archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng_1.2.54.orig.tar.xz
tar -xvf libpng_1.2.54.orig.tar.xz
cd libpng-1.2.54
./autogen.sh
./configure
make -j8
sudo make install
sudo ldconfig

el
elsandkls
Posts: 3
Joined: Mon Aug 24, 2020 11:58 am
Platform: Linux + Windows

Mon Aug 24, 2020 12:15 pm Post

BadPixMap errors
Next, you are probably going to get some perms errors.
To fix the perms error that displays itself as "BadPixMap".

Code: Select all

sudo QT_X11_NO_MITSHM=1 $pathto/$ScrivenerFolder/$ScriverFile


Example:

Code: Select all

 sudo QT_X11_NO_MITSHM=1 /usr/share/scrivener/bin/Scrivener /home/my_user_name/Scrivener_Files/DragonDiary.scriv/DragonDiary.scrivx


That should be it. You should be up and running. If you're not post some error messages and I'll help ya figure it out.

https://github.com/unetbootin/unetbootin/issues/66 -- more information about the reason for the permissions errors.

we
webmost
Posts: 1
Joined: Thu Sep 03, 2020 4:45 pm
Platform: Windows

Thu Sep 03, 2020 4:55 pm Post

Appeared to install without probs... however

will not start

exMPLE OUTPUT:

webmost@ubuntulaptop:~$ ls -al /usr/share/scrivener/scrivener.sh
ls: cannot access '/usr/share/scrivener/scrivener.sh': No such file or directory

webmost@ubuntulaptop:~$ /usr/share/scrivener/bin/scrivener.sh
/usr/share/scrivener/bin/scrivener.sh: 37: exec: /usr/share/scrivener/bin/Scrivener: not found

webmost@ubuntulaptop:~$ ls -al /usr/share/scrivener/bin/Scrivener
-rwxrwxr-x 1 root root 18542548 Oct 20 2015 /usr/share/scrivener/bin/Scrivener

webmost@ubuntulaptop:~$ /usr/share/scrivener/bin/Scrivener
bash: /usr/share/scrivener/bin/Scrivener: No such file or directory

webmost@ubuntulaptop:~$ sudo /usr/share/scrivener/bin/Scrivener
[sudo] password for webmost:
sudo: unable to execute /usr/share/scrivener/bin/Scrivener: No such file or directory

any clues?