emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Beginner installing org-mode 9.1.2 from git fails on homebrew emacs-mac
@ 2017-11-13 23:51 Umbromancer
  2017-11-16 18:40 ` Umbromancer
  0 siblings, 1 reply; 4+ messages in thread
From: Umbromancer @ 2017-11-13 23:51 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Beginner installing org-mode 9.1.2 from git fails on homebrew emacs-mac
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Umbromancer @ 2017-11-16 18:40 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Beginner installing org-mode 9.1.2 from git fails on homebrew emacs-mac
  2017-11-16 18:40 ` Umbromancer
@ 2017-11-16 20:56   ` Tim Cross
  2017-11-18 17:58     ` Umbromancer
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Cross @ 2017-11-16 20:56 UTC (permalink / raw)
  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 <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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Beginner installing org-mode 9.1.2 from git fails on homebrew emacs-mac
  2017-11-16 20:56   ` Tim Cross
@ 2017-11-18 17:58     ` Umbromancer
  0 siblings, 0 replies; 4+ messages in thread
From: Umbromancer @ 2017-11-18 17:58 UTC (permalink / raw)
  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 <theophilusx@gmail.com> 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 <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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-18 17:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2017-11-18 17:58     ` Umbromancer

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).