![]() Otherwise you could try installing Pymacs with the Apple-supplied Python 2.6.1.īy the way, the installation instructions in the link you cite use easy_install. Or you can create a user-wide environment definition for PATH in ~/.MacOSX/ist. If you can't figure out how to do that, you may be able to work around the problem by either modifying the plist file inside of the Carbon Emacs.app bundle to include a LSEnvironment key with the proper value for PATH. If you can figure out where it's calling python, you could change that to an absolute path, like /opt/local/bin/python2.6. Depending on how Pymacs, et al, invoke python, it most likely ends up with the Apple-supplied python2.6 ( python or /usr/bin/env python). ![]() bash_profile, to include that directory on PATH.īut when you launch an application directly (by double-clicking it) the shell is not involved so, by default, /opt/local/bin doesn't get included in the process's PATH variable. When you start an emacs from the terminal, your PATH environment variable presumably includes the MacPorts bin directory /opt/local/bin because presumably you modified one of your shell profiles, probably. Here's how I set $SYSNAME in Zsh, PowerShell, and Emacs: 〈 Set SYSNAME (zsh)〉= # I put architecture-specific local binaries I've built in ~/$SYSNAME/bin.Chances are it is a path problem. emacs - Theresa OConnors Emacs configuration - emacs-lisp - Copyright © 19972022 Theresa OConnor Author: Theresa OConnor Keywords: local. Lacking I emulate the feature with the environment variable $SYSNAME. So you simply add to your PATH, make architecture-and-os-specific directories for your binaries, and AFS will do the right thing.Īnyway, I haven't used AFS in a long, long time, but I'm still in the habit of putting arch/OS specific binaries in directories like this. It's similar to GNU's buildtype, but a bit simpler. I often have a bin/ directory in my home directory that has scripts and binaries in it, but how do you handle the case where you want to put binaries built for several different kinds of machines in your PATH?ĪFS had this feature where you can use a special symbol, in a file path, and that will be replaced with a concise description of the architecture and OS of the machine you're on. In college we used AFS for a campus-wide network filesystem, so my home directory was shared across machines running different kinds of Unix on different kind of CPUs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |