From mboxrd@z Thu Jan 1 00:00:00 1970 From: Umbromancer Subject: Re: Beginner installing org-mode 9.1.2 from git fails on homebrew emacs-mac Date: Sat, 18 Nov 2017 17:58:46 +0000 Message-ID: References: <87vaia7xj4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eG7Ot-0005dG-7P for emacs-orgmode@gnu.org; Sat, 18 Nov 2017 12:59:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eG7Op-0000A2-Lj for emacs-orgmode@gnu.org; Sat, 18 Nov 2017 12:59:31 -0500 Received: from mail-it0-x234.google.com ([2607:f8b0:4001:c0b::234]:36577) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eG7Op-00009d-FY for emacs-orgmode@gnu.org; Sat, 18 Nov 2017 12:59:27 -0500 Received: by mail-it0-x234.google.com with SMTP id 187so5410978iti.1 for ; Sat, 18 Nov 2017 09:59:27 -0800 (PST) In-Reply-To: <87vaia7xj4.fsf@gmail.com> 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: Tim Cross Cc: emacs-orgmode Thanks for putting me on the right track. I would not find that out by my self (+1 for the /etc/paths file too!). That was in fact the problem, somewhere /usr/local/bin/emacs is being called which has an outdate cl-lib. I installed both emacs-mac and emacs-plus via homebrew and was able to successfully upgrade the bundled org-mode to the git stable origin/maint in both cases. Miguel On Thu, Nov 16, 2017 at 8:56 PM, Tim Cross wrote: > > 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