2014-02-25 95 views
11

我想讓Emacs 24.4在Mac(Maverick)上運行。Mac上的Emacs 24.4?

我曾嘗試以下these instructions,但是當我運行:

./build-emacs gzr 

我得到的錯誤:

bzr: ERROR: exceptions.ImportError: Unable to load subvertpy extensions: dlopen(/Library/Python/2.6/site-packages/subvertpy/client.so, 2): Library not loaded: /usr/lib/libsvn_client-1.0.dylib 
    Referenced from: /Library/Python/2.6/site-packages/subvertpy/client.so 
    Reason: image not found 

Traceback (most recent call last): 
File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 930, in exception_to_return_code 
return the_callable(*args, **kwargs) 
    File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1121, in run_bzr 
ret = run(*run_argv) 
    File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases 
return self.run(**all_cmd_args) 
    File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 697, in run 
return self._operation.run_simple(*args, **kwargs) 
File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 136, in run_simple 
self.cleanups, self.func, *args, **kwargs) 
File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups 
result = func(*args, **kwargs) 
File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 2214, in run 
show_bzrdir_info(newdir, verbose=0, outfile=self.outf) 
File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 378, in show_bzrdir_info 
outfile) 
File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 394, in show_component_info 
format = describe_format(control, repository, branch, working) 
File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 499, in describe_format 
format = controldir.format_registry.make_bzrdir(key) 
File "/Library/Python/2.6/site-packages/bzrlib/controldir.py", line 1348, in make_bzrdir 
return self.get(key)() 
File "/Library/Python/2.6/site-packages/bzrlib/registry.py", line 177, in get 
return self._dict[self._get_key_or_default(key)].get_obj() 
File "/Library/Python/2.6/site-packages/bzrlib/registry.py", line 74, in get_obj 
self._obj = get_named_object(self._module_name, self._member_name) 
File "/Library/Python/2.6/site-packages/bzrlib/pyutils.py", line 51, in get_named_object 
obj = __import__(module_name, {}, {}, from_list) 
File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/workingtree.py", line 28, in <module> 
import subvertpy 
File "/Library/Python/2.6/site-packages/subvertpy/__init__.py", line 131, in <module> 
raise ImportError("Unable to load subvertpy extensions: %s" % e) 
ImportError: Unable to load subvertpy extensions: dlopen(/Library/Python/2.6/site- packages/subvertpy/client.so, 2): Library not loaded: /usr/lib/libsvn_client-1.0.dylib 
Referenced from: /Library/Python/2.6/site-packages/subvertpy/client.so 
Reason: image not found 

bzr 2.6.0 on python 2.6.8 (Darwin-13.0.0-x86_64-i386-64bit) 
arguments: ['/usr/local/bin/bzr', 'init-repo', 'emacs-bzr'] 
plugins: bash_completion[2.6.0], bzrtools[2.5.0], changelog_merge[2.6.0], 
colo[0.4.0], email[unknown], explorer[1.3.0], fastimport[0.14.0dev], 
git[0.6.11], grep[2.6.0], keychain[0.1.0], launchpad[2.6.0], loom[2.2.0], 
netrc_credential_store[2.6.0], news_merge[2.6.0], pipeline[1.4.0], 
po_merge[2.6.0], qbzr[0.23.1], rewrite[0.6.3], svn[1.2.2], upload[1.1.0], 
weave_fmt[2.6.0], xmloutput[0.8.8] 
encoding: 'utf-8', fsenc: 'utf-8', lang: 'en_US' 

*** Bazaar has encountered an internal error. This probably indicates a 
bug in Bazaar. You can help us fix it by filing a bug report at 
    https://bugs.launchpad.net/bzr/+filebug 
including this traceback and a description of the problem. 

任何想法?其他方式?

回答

0

我一直在OSX上安裝各種emacs,所以最終我切換到了MacPorts。它有emacs 24.3可用。

0

當前的「bzr」版本在小牛隊中並不適用。您可以安裝另一種預先構建的變體(從MacPorts,自制軟件或fink),或嘗試手動升級庫subvertpy

我使用MacPorts當我使用bzr和當我運行autogen.sh。但是,運行./configure --with-nsmake install時必須將其禁用。 (I使用具有不同PATH環境變量兩個單獨的終端窗口此。)

34

Homebrew提供Emacs的24.4爲好,與

$ brew install emacs --with-cocoa --with-gnutls 
1

我使用GNU Emacs的24.4.1(x86_64的-蘋果darwin13 .4.0,NS apple-appkit-1265.21)目前在OS X 10.9.5上,這個版本是從Emacs for Mac OS X開始的,並且與It's All Text一起使用!爲Firefox編寫這個答案。 ;)

很明顯,大多數人通常會選擇自制軟件(正如最常見的答案所示),但由於自制軟件傾向於使用/ usr/local來適應其他選擇(例如自定義編譯或原創)安裝的Python,我不能/不會運行它(所以我從源代碼或使用MacPorts編譯)。對於那些與我有類似關於自制軟件的人(我知道這不是每個人),然後給Mac OS X版本的Emacs一個鏡頭,失敗的嘗試MacPorts,如果它仍然不理想this question有很多好的反應,取決於你的情況,特別是this answer