PATH issue with asymptote; missing paths added via path_helper in /etc/profile #15310

tloredo opened this Issue Oct 5, 2012 · 2 comments


None yet
3 participants

tloredo commented Oct 5, 2012

I tried to install asymptote, but the install fails during "make install":

pdflatex asy-latex.dtx
make[1]: pdflatex: No such file or directory

I use MacTeX for installing TeX tools; it puts commands in /usr/texbin; pdflatex is on my PATH because MacTeX puts a path entry in /etc/paths.d that gets picked up by path_helper in the OS X /etc/profile. The mechanism is explained here:

I presume had I installed TeX via brew, this would not have happened, but it seems to me installation should be compatible with MacTeX's installation, as it is a popular binary TeX-Live installation.

What would be the proper way to handle this in a formula? Is there a way to get brew to do an install with the PATH that would be set by /etc/profile?

BTW, I think the following issue may be related:




jacknagel commented Oct 5, 2012

Does it work if you add env :userpaths to the formula?

tloredo commented Oct 5, 2012

Thanks, Jack. I added this to the Formula:

make sure TeX paths set via /etc/profile (e.g., from MacTeX) are used

env :userpaths

It worked!

Will you fix this, or should I push a change?

adamv closed this in a60a556 Oct 7, 2012

@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012

@adamv adamv asymptote: use userpaths
Fixes #15310.

xu-cheng locked and limited conversation to collaborators Feb 16, 2016

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