Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Complete Builds available are linking elisp to /Users/xin/Docments... #23

Open
jasonm23 opened this Issue · 28 comments

6 participants

@jasonm23

Warning: arch-dependent data dir (/Users/xin/Documents/emacs-mac-port/build/libexec/emacs/24.3/x86_64-apple-darwin11.4.2/) does not exist.
Warning: arch-independent data dir (/Users/xin/Documents/emacs-mac-port/build/share/emacs/24.3/etc/) does not exist.
Warning: Lisp directory /Users/xin/Documents/emacs-mac-port/build/share/emacs/24.3/lisp' does not exist.
Warning: Lisp directory
/Users/xin/Documents/emacs-mac-port/build/share/emacs/24.3/leim' does not exist.
Error: charsets directory not found:
/Users/xin/Documents/emacs-mac-port/build/share/emacs/24.3/etc/charsets
Emacs will not function correctly without the character map files.
Please check your installation!

@railwaycat
Owner

Hi Jasonm23,

Could you please give me more information about how to trigger this error message?

Is this appears on the prebuilt bundle or your own built by build-emacs.app.sh script?

Thanks!

@jasonm23
@jasonm23
@jasonm23

BTW, the OSX used with this error is 10.7.5

Just tried with the latest version, (downloaded from Dropbox: emacs-mac-port-24.3-mac-4.2.zip)

Grep'ing the files in Emacs.app, only reveals ../xin/Documents in the comments of .elc files

However, obviously it should be looking in /Applications/Emacs.app/Contents/Resources/ not /Users/xin/Documents/emacs-mac-port/build/share/emacs/24.3/ ... Although I'm not sure how to fix this.

@railwaycat
Owner

Thanks Jasonm23! I will try it on my 10.7.5 box later today.

@jasonm23

Did you manage to fix this?

The homebrew build places all the lisp resources in /usr/local/share, which is obviously no good for packaging up an independant .app package.

It looks like you need to change the makefile you're using, so that it puts the site lisp stuff into the app package Content/Resources folder. If you don't have time to do this I will try and fix this for you this week.

@railwaycat
Owner

I tried to replicate on Lion but failed. On both 4.2 and 4.3, I am not able to bring up those error messages. I am not sure if it because of my 10.7 VM is too "clean".

Place lisp resources to /usr/local is the original behavior of emacs mac-port patch. That's why I wrote the build-emacs.app.sh script to build an all-in bundle for it.
Since Homebrew packages able to control files under /usr/local by link/unlink, I think keep the original behavior is good for now. Wait... maybe it's better if we can have a parameter for users to decide if build an all-in bundle.

Thanks, Jason:)

@jasonm23

Given that you will have a /Users/xin folder, it's not surprising you don't get an error. Of course, without another mac without a xin account it's difficult for you to test.

No worries though, I should have time to fix the Makefile in the next couple of weeks latest. I think a switch to assemble the entire manifest into the .app is useful, but only for distribute ready made/inclusive .app packages.

They should weigh in at about 150mb

@railwaycat
Owner

The user name of testing Lion VM is "test".

@jasonm23

Oh, did you re-build the downloadables from DropBox at somepoint since I originally posted this?

@railwaycat
Owner

Nope... It's Emacs 24.3-mac-4.0 or 4.1 when you first post, right?

@EDmitry

I am experiencing this too. Jason, did you manage to fix this?

@jasonm23
@mankoff

I'm experiencing this too. Downloaded latest version, then:

$ ~/Downloads/Emacs.app/Contents/MacOS/bin/emacs --debug-init
Warning: arch-dependent data dir `/Users/xin/emacs-mac-port/build/libexec/emacs/24.4/x86_64-apple-darwin13.4.0/': No such file or directory
Warning: arch-independent data dir `/Users/xin/emacs-mac-port/build/share/emacs/24.4/etc/': No such file or directory
Warning: Lisp directory `/Users/xin/emacs-mac-port/build/share/emacs/24.4/lisp': No such file or directory
Error: charsets directory not found:
/Users/xin/emacs-mac-port/build/share/emacs/24.4/etc/charsets
Emacs will not function correctly without the character map files.
Please check your installation!
~ $

This is on latest OS X (10.10.1).

@drewwells

Restarted my computer and now I'm also experiencing this

-> % emacs --debug-init
Warning: arch-dependent data dir `/Users/xin/emacs-mac-build/libexec/emacs/24.5/x86_64-apple-darwin13.4.0/': No such file or directory
Warning: arch-independent data dir `/Users/xin/emacs-mac-build/share/emacs/24.5/etc/': No such file or directory
Warning: Lisp directory `/Users/xin/emacs-mac-build/share/emacs/24.5/lisp': No such file or directory
Error: charsets directory not found:
/Users/xin/emacs-mac-build/share/emacs/24.5/etc/charsets
Emacs will not function correctly without the character map files.
Please check your installation!
@richardsc

Same issue for me, using the binary Emacs-24.4 with emacs-24.4.91-mac-5.5 downloaded from https://github.com/railwaycat/emacs-mac-port/wiki/Downloads.

$ /Applications/Emacs.app/Contents/MacOS/bin/emacs --debug-init
Warning: arch-dependent data dir `/Users/xin/emacs-mac-build/libexec/emacs/24.5/x86_64-apple-darwin13.4.0/': No such file or directory
Warning: arch-independent data dir `/Users/xin/emacs-mac-build/share/emacs/24.5/etc/': No such file or directory
Warning: Lisp directory `/Users/xin/emacs-mac-build/share/emacs/24.5/lisp': No such file or directory
Error: charsets directory not found:
/Users/xin/emacs-mac-build/share/emacs/24.5/etc/charsets
Emacs will not function correctly without the character map files.
Please check your installation!

I usually start Emacs.app from the command line with an alias like: open -a Emacs, but that doesn't work for the debug init option.

Also, I know this repo is retired, but I've been seeing this issue for awhile (as have others above).

Thanks for the work you do on this!
Clark

@mankoff

Solution: Build, don't download.

@richardsc

@mankoff well, that's a solution. But if pre-built binaries are going to be provided it makes sense to have them be platform independent.

@mankoff

@richardsc Solution: Change your username to "xin" :).

@drewwells

So should the formula be changed to build from source? The current git source for this takes an very long time to download. 10mins from what I've been told, but I never had the patience to download it.

@jasonm23

@drewwells Formula already builds from source.

The error is happening when ppl download the binaries Xin has made.

I regularly build from source and it can take several minutes. My advice is to be patient and just use brew to install emacs-mac as outlined above.

I haven't tried the binaries for a long time now, but I expect fixing this properly isn't a big deal either.

Compiling yourself is going to be way faster than waiting for me, or someone to fix it though.

@drewwells

I'm confused, I ran brew cask install emacs-mac and got a broken precompiled binary. Is the correct install path to build from source: brew cask install --build-from-source emacs-mac ?

@drewwells

Oh I see, the cask is not up to date. Cloning from git now, Thank You! While we're on the topic, why was the clone on github shutdown? chiba-u.ac.jp is very slow.

@jasonm23

Xin was maintaining a clone of Mitsuharu Yamamoto's tarball. Now Mitsuharu is maintaining his own git repo on Chiba U's servers.

So it's set as the official source.

@jasonm23

The best way to install is to use brew (not brew cask) but the build from source flag will effectively do the same thing.

@railwaycat
Owner

@drewwells Sorry for the delay of pre-built and cask update for emacs-24.5-rc2-mac-5.6. I just updated both and have download links from

https://github.com/railwaycat/homebrew-emacsmacport/releases

I usually have homebrew formula updated at the 0 or 1 day after mac-port updated from upstream, and pre-built cask no later than the coming weekend. Issue opening is welcome in case I not notice the update email.

@railwaycat
Owner

I think this may related to issue of my script to building bundle, but not sure what kind of issue...

@mankoff I could use a username you prefer on my build machine :)

@drewwells
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.