![]() |
#1 | |
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
OS X 10.8 (Mountain Lion) Development Environment
Apparently 10.8 changes the way environment variables are passed. ~/.MacOSX/environment.plist is no longer used. According to this post, environment variables are now specified in the app's info.plist file:
Quote:
Ideas? UPDATE: I found this article indicating that it's possible to export an environment variable specified in /etc/launchd.conf. That seems to resolve it. I am now properly running from source. I'd appreciate it if someone else could confirm this solution, and then the docs should be updated to reflect this change for 10.8+. G Last edited by GRiker; 07-25-2012 at 05:58 PM. |
|
![]() |
![]() |
![]() |
#2 |
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Another stumble - bzr explorer is not working after the update to 10.8. There's no environment variable PYTHON_PATH including the location of the bzrlib file.
UPDATE: I reinstalled bzr explorer (version 2.5) and now it's working again. G Last edited by GRiker; 07-25-2012 at 06:45 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,437
Karma: 5702578
Join Date: Nov 2009
Device: many
|
Hi,
Have you tried simply adding your environment variables to a .bash_profile file found in your home directory. Mine says the following: kbhend$ cat .bash_profile # Setting PATH for Python 2.7 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" export PATH export CALIBRE_DEVELOP_FROM=/Users/kbhend/calibre_trunk/calibre/src This should still work given the unix underpinnings of Mac OS X and the use of the bash shell. Please let us know if this works for you or not as I am thinking of upgrading to ML but wanted to make sure my development environment still worked. Thanks, KevinH Quote:
|
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,145
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I suggest you create a simple bash script to launch calibre, that way you wont have trouble when/if Apple decides that setting environment variables is not something their users should be allowed to do.
Code:
#!/bin/sh export CALIBRE_DEVELOP_FROM=whatever calibre-debug -g chmod +x /usr/bin/calibre-develop |
![]() |
![]() |
![]() |
#5 | |
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting up a development environment ... | BWinmill | Kobo Developer's Corner | 27 | 06-16-2014 08:21 AM |
Calibre + OS X 10.8 (Mountain Lion) - no apparent problems | GRiker | Calibre | 9 | 07-26-2012 11:10 PM |
Re: Fantasy Short Story - Year of the Mountain Lion | BearMountainBooks | Self-Promotions by Authors and Publishers | 1 | 06-23-2011 02:21 PM |
setup development environment | JeffElkins | Calibre | 21 | 10-22-2008 03:25 PM |
Setting up development environment | tompe | OpenInkpot | 9 | 08-27-2008 02:26 PM |