emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: Umbromancer <umbromancer@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <87vaia7xj4.fsf@gmail.com> (raw)
In-Reply-To: <CAB3=NSJFVvYL=KTpqwQF-2wLBb3wfqToRmwLzP4pTbKXW_8Mhg@mail.gmail.com>


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 <umbromancer@gmail.com> 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

  reply	other threads:[~2017-11-16 20:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-13 23:51 Beginner installing org-mode 9.1.2 from git fails on homebrew emacs-mac Umbromancer
2017-11-16 18:40 ` Umbromancer
2017-11-16 20:56   ` Tim Cross [this message]
2017-11-18 17:58     ` Umbromancer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vaia7xj4.fsf@gmail.com \
    --to=theophilusx@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=umbromancer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).