wkhtmltopdf on a Mac - how does it get executed? - macos

I'm trying to get wktmtlmtopdf running on a MacBook Pro with OSX Yosemite.
I ran the package installer for wkhtmltopdf 0.12.2.1 and it placed it in user/local/bin
But, when I run the following, I get a different version.
$ wkhtmltopdf -V
Name:
wkhtmltopdf 0.9.9
$ which wkhtmltopdf
/Users/davidburton/.rvm/gems/ruby-1.9.3-p484/bin/wkhtmltopdf
Why isn't it running the 0.12.2.1 version?
Why does $ which wkhtmltopdf point to the one in gems?
Thanks for the help!

Try which wkhtmltopdf -- you probably have the older version installed in /usr/bin which you'll have to remove manually.

For macOS Mojave, try out:
sudo uninstall-wkhtmltox

Related

Installing and running emscripten on OSX 10.15

I recently installed emscripten on my macbook air using homebrew.
But when I try to run it, even if i do a simple emcc --version i get the error llc executable not found at /usr/bin/llc. how can i fix this?
solution: llvm was not installed, so a brew install llvm followed by echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.zshrc solved this problem for me.
Hrm. Seems like adding brew install llvm, I'm still not able to call llvm on my end.
So i just installed brew install emscripten
then I did emcc giving me
Welcome to Emscripten!
This is the first time any of the Emscripten tools has been run.
A settings file has been copied to /usr/local/Cellar/emscripten/1.39.18/libexec/.emscripten, at absolute path: /usr/local/Cellar/emscripten/1.39.18/libexec/.emscripten
It contains our best guesses for the important paths, which are:
LLVM_ROOT = /usr/bin
NODE_JS = /usr/local/bin/node
EMSCRIPTEN_ROOT = /usr/local/Cellar/emscripten/1.39.18/libexec
Please edit the file if any of those are incorrect.
This command will now exit. When you are done editing those paths, re-run it.
Then i did emcc again, giving me BINARYEN_ROOT is set to empty value in /usr/local/Cellar/emscripten/1.39.18/libexec/.emscripten.
How did you set your BINARYEN_ROOT? i'm on the newest macos 10.15.5.

upgrade make on MacOS Catalina

I'm trying to upgrade make (current version 3.81) on Mac Catalina version 10.15.4.
I found this post that uses brew to do it: Updating Make Version 4.1 on Mac
brew install make --with-default-names
however, the option --with-default-names is not supported any more in the brew.
Is there a good example of how to do it?
Thanks!!
OK, this seems it worked for me:
brew install homebrew/core/make
then for using make instead of gmake added to .bash_profile:
PATH="/usr/local/opt/make/libexec/gnubin:${PATH}"

Bad Report Format odoo 8

Whenever i print any report it doesn't come with defined format.
Here i have attached report screen.
Actual format is:
Thanks in advance.
Your report is missing the header and footer sections.
This is a known issue with older versions of wkhtmltopdf. It should be at least version 0.12.0.
The current version can be checked with:
$ wkhtmltopdf --version
wkhtmltopdf 0.12.1 (with patched qt)
Check the latest version for your platform at http://wkhtmltopdf.org/downloads.html and install it.
For example, to install current 0.12.1 64 bits:
$ sudo apt-get remove --purge wkhtmltopdf
$ wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
$ sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
After install wkhtmltopdf 0.12.0 still header missing ?
There is small configuration you can try this Report formatting not working in Odoo 8 Qweb Reports

How can I install qpdf on Mac 10.8.3?

When running R CMD check on packages on a Mac build server, I'm getting a warning
‘qpdf’ is needed for checks on size reduction of PDFs
I can't seem to get qpdf installed and on the system. I tried installing via the fink package manager, but according to the package database (http://pdb.finkproject.org/pdb/package.php/qpdf), qpdf doesn't seem to have been built since osx 10.6, and I'm on 10.8.3.
Can anyone point me to qpdf mac install or build instructions? Or is there a way to disable the warning when checking R packages?
This is somewhat related to the question qpdf.exe for compactPDF?, although they were on a windows machine and I'm on a mac.
You can install qpdf with homebrew:
brew install qpdf
MacPorts can help you. Download MacPorts from http://www.macports.org/ and run sudo port install qpdf.

Incorrect check of SIP version during PyQt installation

I have been trying to install PyQt on my mac (OSX 10.6.8), but I still having this problem:
When I try to install PyQt-mac-gpl-4.9.6, I get this
Error: This version of PyQt requires SIP v4.14.2 or later.
The weird thing is that when I want to check for sip version on the console and write
sip -V
,I get the correct version: 4.14.2
I have checked my PATH but non of the online tips that I have found have helped me. How do I fix this?
I would recommend checking to see if you have sip installed in different locations, with the newer version being in a path that is not at the head of your PATH.
mdfind -name sip | grep '/bin/'
This should tell you all of the sip binaries on your computer. Check the version of all of them, and then make sure that path is at the front of PATH
What it could actually be, regardless of it seeming like you only have one sip, is a leftover .pyc file that is getting picked up before your intended sip. Try this to confirm:
$ python
>>> import sipconfig
>>> print sipconfig
This will tell you where it is finding sipconfig. If it looks like the wrong spot, or if you check it and all that is left is the pyc file, remove it. Then your newer sip should be found properly.
I had a similar issue after installing sip 4.14.2 over a previous version of 4.13.1 on Mac OSX 10.7.4 and Python 2.7. Strangely, the version of sip from the command line was different from the version from the Python sipconfig module.
$ sip -V
4.14.2
$ python -c "import sipconfig; print sipconfig.version_to_string(sipconfig.Configuration().sip_version)"
4.13.1
I ran through the install again, this time with running the install step as 'sudo make install' and the two versions matched at 4.14.2 and the PyQt instal was successful.
$ cd ~/Downloads/sip-4.14.2/
$ python configure.py
$ make
$ sudo make install

Resources