The Prince Installation Guide tries to be exhaustive in explaining how to install the application. However, there might always be something not answered in the documentation, or something not working as expected. There are a couple of ways to get help to solve the problems:
- The Troubleshooting section addresses possible common issues after installing and starting to use Prince;
- The Frequently Asked Questions section provides answers to the most frequently asked questions about installation;
- The forum is an excellent place where to find an answer to an issue, or where to ask for help;
- You can contact us for support.
We work hard to make Prince work on multiple platforms (Windows, Linux, etc) and with multiple configurations. However things don't always work correctly the first time. You're very welcome to contact us for support or visit our forum. However if you are facing a common problem, you may be able to find an explanation and solution below.
Missing glyphs or fonts
prince: page 1: warning: no font for Aegean Numbers character U+10123, fallback to '?'
Prince tries to tell you which page the missing glyph appeared on, what type of character it was (eg. "Latin", "Greek", etc.) and what character it used as a fallback (usually '?').
prince: internal error: no available fonts
However, if there are no available fonts on the system at all then it won't even be able to find the question mark glyph, and you get an internal error message.
Install the msttcorefonts package (see your operating system's documentation).
Redefine the CSS generic font families to use different TrueType fonts by editing the
fonts.css file in the Prince installation - see Installation Layout, Fonts and Redefining the generic font families.
This problem may be a symptom of the Fontconfig.
Fontconfig error: Cannot load default config file
Prince uses the Fontconfig library on Linux systems to search for fonts. Fontconfig is installed as a standard component on most desktop Linux distributions such as Ubuntu and recent versions of Red Hat Linux.
Some older Linux distributions do not come with fontconfig and this may cause the above error. This error will usually be followed by errors relating to Missing glyphs or fonts that cannot be found due to the absence of Fontconfig.
install Fontconfig (see your operating system's documentation).
Redefine the CSS generic font families to use TrueType fonts that are specified directly by their filenames, avoiding the need to use Fontconfig at all. In extreme cases it might be advisable to disable system fonts completely with the
--no-system-fonts command-line option. See Fonts and Redefining the generic font families.
Shared library trouble
/usr/local/stow/prince-9/lib/prince/bin/prince: error while loading shared libraries: libtiff.so.4: cannot open shared object file: No such file or directory
Shared object "libxml2.so.2" not found, required by "prince"
Prince uses some third-party shared libraries, these are used for things such as decoding TIFF, PNG or JPEG files and finding and loading fonts. If one or more of these shared libraries cannot be found on your system then Prince will not run. This can occur if Prince was installed from a tarball (see Tarballs - Alpine Linux, FreeBSD and Generic Linux).
Install the missing library software. Acknowledgments provides a list of the libraries that Prince uses. It is recommended to install them through your operating system's package management tool, see your operating system's documentation for more information.
Prince is just using the system shared object loader for most libraries, so the
LD_LIBRARY_PATH environment variable might need to be edited, if you have installed these libraries in non-standard or different locations.
-bash: prince: command not found
The command interpreter (
bash) does not know how to find the
prince executable. It was not found in any of the locations specified by the
PATH environment variable.
bin/ subdirectory to your
PATH and ensure that these changes are saved for future shell sessions. If Prince is installed in
/opt/prince10, then add
PATH. There are many different types of command interpreters (also called shells) and we cannot possibly document all of them. The appropriate command for borne-style shells (the most common type) is usually:
This should be added to your command interpreter's configuration. For more information see your operating system's documentation.
Prince cannot be run on MacOS Catalina.
> # "prince" cannot be opened because the developer cannot be verified. > macOS cannot verify that this app is free from malware.
Gatekeeper triggers a system alert when trying to run the Prince executable.
In order to run the command line utility, you need to open the Security and Privacy preference pane in System Preferences, select the General tab, and click "Allow Anyway".
Alternatively, you can run the following commands from Terminal to first remove any quarantine attribute applied by Safari when downloading
prince, and then manually add a SecAssessment system policy label to the executable:
$ xattr -d -r com.apple.quarantine /usr/local/bin/prince $ spctl --add --label "Approved" /usr/local/bin/prince
Doing this will change the system alert to a system prompt to confirm running the executable. For more information and possible further workarounds see also this forum thread.
Frequently Asked Questions
The Prince GUI is still a 32-bit program, but the formatting engine is 64-bit.
On Linux, you typically run Prince with the following command:
prince file.xml -o file.pdf
On Windows, you replace the name of the executable with
Prince\engine\bin\prince.exein the installation directory (see Windows installation layout, which is the command-line program. See also Command-line Reference.
"C:\Program Files (x86)\Prince\engine\bin\prince.exe" file.xml -o file.pdf
Prince can be installed on the supported operating systems - also when they are running in cloud or container services. On Linux, some environments might not provide for all dependencies - you can address this by either trying to install the Generic Linux Prince package (see Tarballs - Alpine Linux, FreeBSD and Generic Linux), or by trying to install the missing dependencies.
See this forum post for a description of an installation on Azure.
Prince for Books is available in package bundles only - to install it, the files need to be copied into place (Windows), or an installation script needs to be run (on Linux and MacOS X). It can be installed without problem alongside a normal Prince installation - the executable to run is called
The Prince Wrappers come in different languages, and each one has a different installation procedure. Mostly they are explained in the documentation for each of the Prince Wrappers. The short principle is that the wrapper files need to be placed in a location from which they can run - this may slightly vary depending on the hosting Operating System.