-
Notifications
You must be signed in to change notification settings - Fork 17
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
pandoc: xelatex: createProcess: posix_spawnp: illegal operation (Inappropriate ioctl for device) #10
Comments
Here are some terminal outputs to show you my install and the fact that everything is in my PATH. I've tried using both homebrew and manually installing pandoc and tex.
|
@apotenza92 Hi, did you run the command on terminal directly success? I have never use MikTEX,maybe should custom your own command. |
I made a custom command that works perfectly well on Windows: That exact command doesn't work on Mac and you end up with the same error: If I run the command below in a Mac terminal it works perfectly: |
Sorry didn't mean to close. |
@apotenza92 you look jgm/pandoc#7570 |
Haven't seen this before, but I've seen a slightly different issue on M1 macs solved by specifying the full path to the pdflatex program.
See pandoc FAQs. Originally posted by @jgm in jgm/pandoc#7570 (comment) |
obsidian-enhancing-export/src/exporto0o.ts Lines 91 to 95 in 00c21c3
You can specify the full path of lualatex, since there aren't extra paths in or make a symbolic of xelatex to ln -s `which xelatex` /usr/local/bin/ |
@apotenza92 Hi,Does the above solution work? if it works, I will add |
@mokeyish Could you please add that PATH modification? I'm on an M1 Mac and had a similar error message when I did not specify the full path to Creating a symlink to Thanks for your work on this excellent plugin! |
Great, that's it's OK to add environment variables. I'll add it later this week. Thank you for trying the above. BTW: I'm writing another plugin Code emitter |
@rodzam Hi, rodzam , You can try the latest version. I have added it to the |
The new version works great! Obsidian no longer complains about the missing I expect this would fix the original "illegal operation" issue that @apotenza92 experienced, too. Thanks for the quick fix! As a future To Do, I wonder if it would be possible to add a setting for manually specifying a new PATH variable, for people who use non-standard TeX installations. I think that might help with future-proofing things. That said, the implemented fix should solve things for the vast majority of Mac users, and the symlink solution would still be a possibility for those edge cases. |
Hi, I'm on macOS and receive this error. I'm using Pandoc and MacTex, both are installed and on my path but I still recieve this error.
I use the exact same command arguments on my PC using Pandoc and MikTEX and it works perfectly fine.
Is there something unique I need to do on macOS to ensure the installation of pandoc or Tex works?
The text was updated successfully, but these errors were encountered: