From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Beginner installing org-mode 9.1.2 from git fails on homebrew emacs-mac Date: Fri, 17 Nov 2017 07:56:31 +1100 Message-ID: <87vaia7xj4.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFRDJ-0005tJ-WC for emacs-orgmode@gnu.org; Thu, 16 Nov 2017 15:56:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFRDG-0002D3-9Z for emacs-orgmode@gnu.org; Thu, 16 Nov 2017 15:56:46 -0500 Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]:37267) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eFRDG-0002BE-11 for emacs-orgmode@gnu.org; Thu, 16 Nov 2017 15:56:42 -0500 Received: by mail-pg0-x22d.google.com with SMTP id o7so245784pgc.4 for ; Thu, 16 Nov 2017 12:56:41 -0800 (PST) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Umbromancer Cc: emacs-orgmode That error you see re: missing cl-lib is an error I have seen because the system is getting confused over emacs versions. Essentially, somewhere in the scripts, a call is being made to 'emacs' and it is finding the old /usr/bin/emacs rather than the one you have installed with homebrew. I have found this happens when I use the 'macports' version i.e. the brew cask version of emacs. I don't get this problem when I just do a brew install emacs (remembering to manually add the cocoa, svg, imagemagick etc command line switches). I've not really looked into it as the non-cask version of emacs works just fine, but I think the issue is that the cask version does not create binaries or sym links to binaries in /usr/local/bin for 'emacs' (note lower case), so the version in /usr/bin/emacs is being picked up and that version predates cl-lib. Try doing a `which emacs` in a terminal to see which version is being found and then do whatever you need to do to ensure the homebrew version is found in the PATH before the stock standard OSX version. Tim BTW it is also a good idea to add /usr/local/bin to the /etc/paths file to ensure that directory is added before /usr/bin by default when you login etc. > Solved. > > I was successful following the same steps using homebrew emacs-plus > (https://github.com/d12frosted/homebrew-emacs-plus) instead of > homebrew emacs-mac > (https://github.com/railwaycat/homebrew-emacsmacport). So it seems > this must be an issue with the railwaycat distro or its homebrew > formula. > > On Mon, Nov 13, 2017 at 11:51 PM, Umbromancer wrote: >> Hi all, >> >> This is my first post on the list, and an definitively an emacs/org-mode newbe. >> >> I've just upgraded to emacs 25.3.1 via homebrew (emacs-mac) and the >> included org-version is 8.2.10. I'm trying to setup the git stable >> release_9.1.2 as per suggestion on the worg faq. I've cloned the git >> repo and duplicated default.mk into local.mk and edited it so as to >> point to the homebrew Emacs location. >> >> I've upgraded org-mode on my previous Emacs 24 install using the >> "same" method. The only difference being previously I used the >> org-mode stable download from org-mode.org instead of the git sources. >> >> After editing local.mk and issuing the make commands, I get: >> $ make cleanall >> ... >> $ make install >> Miguels-MBP:org-mode me$ make install >> /Library/Developer/CommandLineTools/usr/bin/make -C doc install >> org-version: 9.1.2 (release_9.1.2) >> makeinfo --no-split org.texi -o org >> /Users/me/elisp/org-mode/doc//docstyle.texi:3: warning: unrecognized >> encoding name `UTF-8'. >> if [ ! -d /usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/info/emacs >> ]; then install -m 755 -d >> /usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/info/emacs; else >> true; fi ; >> install -m 644 -p org >> /usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/info/emacs >> install-info --infodir=/usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/info/emacs >> org >> /Library/Developer/CommandLineTools/usr/bin/make -C etc install >> for dir in styles schema ; do \ >> if [ ! -d >> /usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/emacs/25.3/etc/org/${dir} >> ] ; then \ >> install -m 755 -d >> /usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/emacs/25.3/etc/org/${dir} >> ; \ >> fi ; \ >> install -m 644 -p ${dir}/* >> /usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/emacs/25.3/etc/org/${dir} >> ; \ >> done ; >> /Library/Developer/CommandLineTools/usr/bin/make -C lisp install >> rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc >> org-install.elc >> org-version: 9.1.2 (release_9.1.2) >> Loading /Users/me/elisp/org-mode/lisp/org-compat.el (source)... >> Cannot open load file: cl-lib >> make[1]: *** [org-version.el] Error 255 >> make: *** [install-lisp] Error 2 >> Miguels-MBP:org-mode me$ >> >> cl-lib is of course available when I run Emacs. >> I'm mostly likely missing something which fails to be obvious for me... >> >> Thanks in advance for all the help, >> Miguel -- Tim Cross