New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dblatex link on GitHub is not correct #1

Closed
cmoulliard opened this Issue Apr 17, 2012 · 11 comments

Comments

6 participants
@cmoulliard
Copy link

cmoulliard commented Apr 17, 2012

Hi,

I would like to inform you that your link to install dblatex is wrong. It should be now

brew install https://github.com/bartschuller/homebrew/tree/master/Library/Formula/dblatex.rb

Remark: I cannot install it on Mac OS Lion

Error: /Library/Caches/Homebrew/Formula/dblatex.rb:4: syntax error, unexpected '<'

^
/Library/Caches/Homebrew/Formula/dblatex.rb:5: syntax error, unexpected '<'

^ /Library/Caches/Homebrew/Formula/dblatex.rb:7: syntax error, unexpected '<' ^ /Library/Caches/Homebrew/Formula/dblatex.rb:8: syntax error, unexpected '<' ^ /Library/Caches/Homebrew/Formula/dblatex.rb:8: syntax error, unexpected tIDENTIFIER, expecting $end ^ Please report this bug: https://github.com/mxcl/homebrew/wiki/reporting-bugs /usr/local/Library/Homebrew/formula.rb:328:in `require' /usr/local/Library/Homebrew/formula.rb:328:in`factory' /usr/local/Library/Homebrew/extend/ARGV.rb:14:in `formulae' /usr/local/Library/Homebrew/extend/ARGV.rb:14:in`map' /usr/local/Library/Homebrew/extend/ARGV.rb:14:in `formulae' /usr/local/Library/Homebrew/cmd/install.rb:20:in`install' /usr/local/bin/brew:83:in `send' /usr/local/bin/brew:83

Do you know How to solve that ?

Regards

Charles

@akosma

This comment has been minimized.

Copy link
Owner

akosma commented Apr 18, 2012

Thanks for the heads up. I've updated the link to the dblatex Homebrew formula, which unfortunately isn't yet available in the core Homebrew distribution. I haven't tested it, I hope it works!

@akosma akosma closed this Apr 18, 2012

@cmoulliard

This comment has been minimized.

Copy link

cmoulliard commented Apr 19, 2012

Thx. The brew installation fails (not matter if we try to install dblatex 0.3 or 0.3.2) on Mac OS Lion

Progresss-MacBook-Pro:camel chmoulli$ brew install https://raw.github.com/gist/1430194/fc7142e21f78c19bee70c96fbef7ed583bca23b5/dblatex.rb
######################################################################## 100.0%
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading http://downloads.sourceforge.net/project/dblatex/dblatex/dblatex-0.3/dblatex-0.3.tar.bz2
######################################################################## 100.0%
==> python setup.py install --prefix=/usr/local/Cellar/dblatex/0.3 --install-scripts=/usr/local/Cellar/dblatex/0.3/bin
running install
Error: not found: latex, makeindex, pdflatex, kpsewhich
+checking XSLT xsltproc... yes
+checking convert... yes
+checking epstopdf... no
+checking fig2dev... no
warning: not found: epstopdf, fig2dev
+checking latex... no
+checking makeindex... no
+checking pdflatex... no
+checking kpsewhich... no
==> Build Environment
CPU: 8-core 64-bit sandybridge
MacOS: 10.7.3-x86_64
Xcode: 4.3.2
MacPorts/Fink: /opt/local/bin/port
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j8
Error: Failed executing: python setup.py install --prefix=/usr/local/Cellar/dblatex/0.3 --install-scripts=/usr/local/Cellar/dblatex/0.3/bin (.rb:)
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/reporting-bugs

@akosma

This comment has been minimized.

Copy link
Owner

akosma commented Apr 19, 2012

Thanks for testing.

After reading the error message, I'd suggest to check your local installation; apparently homebrew can't find the local LaTeX installation:

Error: not found: latex, makeindex, pdflatex, kpsewhich

Have you installed MacTex? http://www.tug.org/mactex/

Also, perform a brew doctor on your system, and solve any error reported by the tool.

@cmoulliard

This comment has been minimized.

Copy link

cmoulliard commented Apr 19, 2012

MacTex has been installed. They are some warning generated by brew doctor but nothing related to LaTeX. I will check the PATH.

@jmoney8080

This comment has been minimized.

Copy link

jmoney8080 commented Sep 28, 2012

I am having the same issue. I have MacTex installed but homebrew says it can't find it. Where does the python setup script look for the latex/pdflatex binaries.

I also had to use the command: brew install https://raw.github.com/gist/1430194/fc7142e21f78c19bee70c96fbef7ed583bca23b5/dblatex.rb

simply doing: brew install dblatex says couldn't find the formulae. This is on Mac OS X Lion

@dentonlt

This comment has been minimized.

Copy link

dentonlt commented Sep 30, 2012

Hi, jmonette -

I am having a similar problem, but on linux 3.0.21 (tinycore 4.6; i686). setup.py chokes - error output below.

I do have a full TeX installation, including all the requires scripts. So I think this is a PATH problem. Changing PATH has no effect, and I've also tried using --install-scripts=/foo/blah. No luck.

I'm interested to know if you found a solution. I don't read Python (I do C/C++), so understanding setup.py is a bit of a slow process.

DLT

Error: not found: amsmath, amssymb, amstext, anysize, appendix, calc, changebar, color, colortbl, courier, eucal, fancybox, fancyhdr, fancyvrb, float, footmisc, graphicx, helvet, hhline, hyperref, ifpdf, ifthen, latexsym, listings, longtable, lscape, mathptmx, mathrsfs, multirow, overpic, palatino, pdfpages, pifont, refcount, rotating, stmaryrd, subfigure, tabularx, textcomp, titlesec, wasysym
@dentonlt

This comment has been minimized.

Copy link

dentonlt commented Sep 30, 2012

Figured it out:

setup.py uses kpsewhich to find the scripts provided by TeX. kpsewhich and the other kpathsea tools rely on a properly configured path variable of their own - the environment variable TEXMFROOT. Guidelines for setting that variable appear in .../web2c/texmf.cnf.

HTH

DLT

@mavcunha

This comment has been minimized.

Copy link

mavcunha commented Dec 3, 2012

Short Version: Adding,

env :userpaths

to the formula did the trick for me.

Long version: It seems that TexLive adds it's path using the path_helper convention on OSX, so I notice that running:

brew --env

Would not show the /usr/texbin as part of the PATH, thus the installation can't find pdflatex and others. Add env :userpaths to the formula seems to fix that.

@akosma

This comment has been minimized.

Copy link
Owner

akosma commented Jan 10, 2013

I gave up and I installed MacPorts, and with that I installed asciidoc and dblatex; I've modified the build scripts and updated the path for the latest KindleGen too. Now everything works (at least for me :)

Let me know if this setup now also works for you. The build scripts have been updated accordingly.

@cskeeters

This comment has been minimized.

Copy link

cskeeters commented Jan 29, 2013

I had the same problem. I tried installing the python directly and saw what packages were missing and then installed those with tlmgr, and then brew worked fine.

sudo tlmgr update --self
sudo tlmgr install appendix changebar footmisc multirow overpic stmaryrd subfigure titlesec wasysym
sudo brew install dblatex

@akosma

This comment has been minimized.

Copy link
Owner

akosma commented Sep 15, 2013

I've just pushed a version that uses the latest Homebrew recipes for asciidoc and dblatex, following these instructions: https://gist.github.com/dustinschultz/6554087

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment