I've CentOS 6 and I want to make install from source of MuPDF library on it. I've tried using different links over internet but no success, Can anyone help me?...
Source of MuPDF is available at
https://mupdf.com/downloads/index.html
I've tried this link on last.
http://software-engineering-and-computers.blogspot.com/2013/10/building-mupdf-on-centos.html
Can anyone help me?
The easiest way of installing on CentOS (or any other os) is using anaconda.
Once you make sure that you have anaconda installed, run the command:
conda install -c conda-forge mupdf
That's it!
If you wanna however not use anaconda (I warn you, it will be nowhere as easy as it is with anaconda), you can follow these steps:
1). Get the MuPDF source from the site wget https://mupdf.com/downloads/archive/mupdf-1.14.0-source.tar.gz and decompress it (latest version as of writing. Others available here: https://mupdf.com/downloads/archive/).
2). MuPDF also has a repository on GitHub. This, however, is the latest development version! Do not use it: it is probably not be compatible with the current PyMuPDF.
3). Set environment variables: export CFLAGS="-fPIC" (on CentOS 5, export CFLAGS="-fPIC -std=gnu99" to resolve errors about missing a definition for NAN symbol in the thirdparty/mujs folder).
4). Run the initial make: make HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local
5). If no issues occur install: make HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local install
Reference: https://github.com/pymupdf/PyMuPDF/wiki/Ubuntu-Installation-Experience
Related
I already installed the following packages version 4.3-1, gcc-core version 11.3.0-1, gcc-g++ version 11.3.0-1. However, when I run the make command after running the make config-alpha command, I get several errors on the screen. I already tried to install other versions of these packages but I still get the same results.errors that I got
Which other additional package should I install?
Assuming that SimpleScalar is the one here:
https://www.es.ele.tue.nl/~yhe/aca/Simplescalar_Download.html
the packaging is ancient (gcc gcc-2.7.2.3) and its manually crafted configure is not considering any recent platforms.
It seems very hard to adjust to a Cygwin build and you can not use the GCC Cygwin compiler for a cross build of a Alpha platform
I have GCC v9. But I'm trying to install a GCC 4.8.1 version to test a library compilation on that very old version of GCC.
The version is not available in the official Ubuntu repos,it is deprecated, but I've found it in other mirrors as told by the official GCC website. This one seems like popular one:
https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
I have very little knowledge of linux package systems except for the basic. I want to keep both versions. So I should do this:
sudo apt -y install gcc-4.8.1 gcc-9
The reason why I want to use this command and not install it from the file, apart from the difficulty of doing that for me, is that I'm following a guide in order to have several GCCs on my system:
https://www.fosslinux.com/39386/how-to-install-multiple-versions-of-gcc-and-g-on-ubuntu-20-04.htm
When I add the url to the sources.list file seems like it is working.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update -q
But when I try to call the install with gcc-4.8.1 or gcc-4.8 , or even gcc-4 the package doesn't exist.
Package gcc-4.8 is not available, but is referred to by another
package. This may mean that the package is missing, has been
obsoleted, or is only available from another source E: Package
'gcc-4.8' has no installation candidate
Also, I don't know if websites like these can be added to the repos list in order to find the package using APT:
http://www.netgull.com/gcc/releases/gcc-4.8.1/
[EDIT]
I downloaded the package from the website I linked. I have no idea how to install this by hand. If only I could find a repository that could help me with this... I have no idea how to make APT help me with the installation.
But I'm trying to install a GCC 4.8.1 version to test a library compilation on that very old version of GCC.
Developers have tools up their sleeve so they don't have to install dependencies and bloating their systems for every library (and every configuration of that library!) they want to try out and test.
Use docker. You could write for example a testing script, assuming your project uses make:
# test_my_lib_in_gcc-4.8.sh
#!/bin/sh
docker run -ti --rm -v $PWD:/project -w /project gcc:4.8 -u $UID:$GID sh <<EOF
make && make test
EOF
that will compile and test your application in using 4.8 gcc. Consider how easy it is to change gcc version - just change the number. You could test your library in gcc, in different versions, and using other compilers and on different distributions to make sure it works for others. If you're a developer of the library, write an automatized CI pipeline that would automatically test your application each commit in specific docker environment, using ex. https://docs.gitlab.com/ee/ci/README.html or https://travis-ci.org/ .
I am trying to install bigtop on centos6 (VM using virtualbox).
I am following links given below with little modifications to get latest versions (bigtop 1.1.0) -
http://www.dummies.com/how-to/content/set-up-the-hadoop-environment-with-apache-bigtop.html
https://cwiki.apache.org/confluence/display/BIGTOP/How+to+install+Hadoop+distribution+from+Bigtop+0.5.0
To be precise, I have run following commands till now -
wget -O /etc/yum.repos.d/bigtop.repo http://www.apache.org/dist/bigtop/bigtop-1.1.0/repos/centos6/bigtop.repo
yum install hadoop\* mahout\* oozie\* hbase\* hive\* hue\* pig\* zookeeper\*
Now the problem is, it says -
No package hadoop* available.
No package hue* available.
No package zookeeper* available.
I am new to linux and don't completely understand what exactly these commands are doing. I have wasted an entire day on this. As I am just trying to explore hadoop on my VM, I am fine if I can get some older version of bigtop too but I would prefer that I can get atleast hadoop 2.0 or above.
Can someone help on this?
Thanks.
You have to run sudo apt-get update between adding new repository and installing packages from it.
I've tried installing different libgmp's from ubuntu app center and I tried installing it manually from http://gmplib.org/#DOWNLOAD but I can't get this to configure it's an old library and I'm trying to run it on the latest version of ubuntu but I didn't think I'd have problems but I'm new to trying to use libraries like this any help would be greatly appreciated.
I've had these kind of errors installing dependencies before, and I realized that you must to force the installation of such pack having it... you didn't mention the version of your Ubuntu, so I'm assuming you're working with 12.10. But if not you always can look up for the version you are running on.
Just download the pack from here, of course, depending on your architecture, and after that run sudo apt-get -f install in order to force the installation of broken packs.
I cannot build Poppler 0.14.1 from source code on CentOS 5.4. When I do ./configure it ends with a message like:
checking for FONTCONFIG... configure:
error: Package requirements
(fontconfig >= 2.0.0) were not met:
I have successfully built from source code, and installed
fontconfig 2.8.0
on that machine, and also set the PKG_CONFIG to point to the folder that contains the fontconfig.pc (/usr/local/lib/pkgconfig/).
It is true that when I do $PKG_CONFIG --version fontconfig it gets echos '0.20' but the fontconfig.pc does write that the version of the library is 2.8.0. Also there are no other libfontconfig.so other then the one build from source on that machine, so I am sort of stuck and not sure what to do (except debugging configure)
Has anyone solved a similar case before?
Thanks
Peter
Check if the package fontconfig-devel is installed. If not, install it and then try your build again.
For debian squezee, I've had to install packages manually from the sources:
http://cgit.freedesktop.org/fontconfig/
(Download directly, not use the git because there are problems when configure)
And BTW, very useful guide to install poopler and dependences from the scratch:
http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html