You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Blake Winton <bw...@latte.ca> on 2006/08/31 23:41:11 UTC

Subversion and OS X 10.4

Hello,

I've been trying to get the Subversion bindings for Python working with 
my Framework Python under Mac OS X 10.4.  I would also like to have my 
own repository, available under http(s)://latte.ca/svn/ using the WebDAV 
interface.

I've gone back and forth, trying to get this all working, with no 
success.  The most recent error (after installing Apache 2, and 
disabling the default Apache that came with OS X, and after compiling 
and configuring subversion three or four times (some with ./autogen.sh 
because a webpage recommended it, some without because some email said 
not to, some with an old apxs from DarwinPorts, some without, etc, etc) 
was make swig-py complaining about missing symbols.  That led me to a 
page which said that I needed to compile neon myself, which I tried to, 
but apparently got version 26 instead of version 25.5.

So, I'm kind of tired and disillusioned at the whole process, and I'm 
asking for help.  Is there a set of steps I can follow to get all of the 
following:
1) Subversion installed.
2) The Python bindings installed into my Framework Python.
3) A repository which I can access from http://latte.ca/svn/

(And to think I bought a Mac because I was tired of the endless 
adminstration I had to do on my FreeBSD box.)

Thank you all for any help you may be able to provide,
Blake.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Subversion and OS X 10.4

Posted by Blake Winton <bw...@latte.ca>.
Blair Zajac wrote:
>> (After switching to Subversion 1.3.1, it was pretty much just a matter 
>> of cleaning out my old, broken copies of stuff, and recompiling.)
> Did you compile against Mac OS X's Python or MacPorts.  BTW, I believe 
> that MacPorts is a framework build also, since you can run GUI apps with 
> it.

Neither.  ;)  I compiled against Universal MacPython 2.4, from
http://pythonmac.org/packages/py24-fat/index.html  (At least, I think 
that's where I got it.  I've installed and uninstalled a few different 
Pythons, in an effort to get everything working.  I know I had a 
MacPorts version of Python installed at one point, but it didn't work 
with something else I was trying to do.  Either I couldn't import from 
AppKit or WebKit, or perhaps it didn't work with py2app, but that 
doesn't sound right since there's a py-py2app port...  Honestly, I don't 
remember what didn't work with it.)

I'm sure that one day I'll revisit my installations, and see how wrong I 
went based on my limited knowledge, but until then, it works, and I'm 
trying not to spend too much of my time tinkering with things that 
already work on this computer (as opposed to my previous server, where I 
would re-install and replace anything anytime a newer version came out.)

(Hmm...  From:
http://mail.python.org/pipermail/pythonmac-sig/2005-February/013034.html 
  > The DarwinPorts python doesn't play well with Aqua.
Perhaps that was it.  Or there were other references to destroot and 
bundlebuilder...)

Thanks again,
Blake.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Subversion and OS X 10.4

Posted by Blair Zajac <bl...@orcaware.com>.
On Sep 4, 2006, at 5:06 PM, Blake Winton wrote:

> Blake Winton wrote:
>> I've been trying to get the Subversion bindings for Python working  
>> with my Framework Python under Mac OS X 10.4.  I would also like  
>> to have my own repository, available under http(s)://latte.ca/svn/  
>> using the WebDAV interface.
>
> Thanks to the generous help of Jeremy Pereira and Blair Zajac, I've  
> managed to get it all working.  The solution, in my case, was to  
> compile Subversion 1.3.1 instead of 1.3.2.  I'm not sure why this  
> is so, and I don't (yet) have the Mac-fu required to figure it out,  
> but if someone else does take a look at the diffs and figures it  
> out, I'ld love to hear what the actual problem was.
>
> (After switching to Subversion 1.3.1, it was pretty much just a  
> matter of cleaning out my old, broken copies of stuff, and  
> recompiling.)
>
> Thanks again,
> Blake.

Blake,

Did you compile against Mac OS X's Python or MacPorts.  BTW, I  
believe that MacPorts is a framework build also, since you can run  
GUI apps with it.

Regards,
Blair


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Subversion and OS X 10.4

Posted by Blake Winton <bw...@latte.ca>.
Blake Winton wrote:
> I've been trying to get the Subversion bindings for Python working with 
> my Framework Python under Mac OS X 10.4.  I would also like to have my 
> own repository, available under http(s)://latte.ca/svn/ using the WebDAV 
> interface.

Thanks to the generous help of Jeremy Pereira and Blair Zajac, I've 
managed to get it all working.  The solution, in my case, was to compile 
Subversion 1.3.1 instead of 1.3.2.  I'm not sure why this is so, and I 
don't (yet) have the Mac-fu required to figure it out, but if someone 
else does take a look at the diffs and figures it out, I'ld love to hear 
what the actual problem was.

(After switching to Subversion 1.3.1, it was pretty much just a matter 
of cleaning out my old, broken copies of stuff, and recompiling.)

Thanks again,
Blake.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Subversion and OS X 10.4

Posted by Blair Zajac <bl...@orcaware.com>.
On Aug 31, 2006, at 4:41 PM, Blake Winton wrote:

> Hello,
>
> I've been trying to get the Subversion bindings for Python working  
> with my Framework Python under Mac OS X 10.4.  I would also like to  
> have my own repository, available under http(s)://latte.ca/svn/  
> using the WebDAV interface.
>
> I've gone back and forth, trying to get this all working, with no  
> success.  The most recent error (after installing Apache 2, and  
> disabling the default Apache that came with OS X, and after  
> compiling and configuring subversion three or four times (some  
> with ./autogen.sh because a webpage recommended it, some without  
> because some email said not to, some with an old apxs from  
> DarwinPorts, some without, etc, etc) was make swig-py complaining  
> about missing symbols.  That led me to a page which said that I  
> needed to compile neon myself, which I tried to, but apparently got  
> version 26 instead of version 25.5.
>
> So, I'm kind of tired and disillusioned at the whole process, and  
> I'm asking for help.  Is there a set of steps I can follow to get  
> all of the following:
> 1) Subversion installed.
> 2) The Python bindings installed into my Framework Python.

I would build the whole thing against DarwinPorts (now MacPorts) and  
let it do the work for you.  You'll spend a lot less time on it.

While you'll end up building Python for MacPorts to get the bindings,  
you'll also have a newer Python on your system 2.4.3 versus Apple's  
2.3.5.

> 3) A repository which I can access from http://latte.ca/svn/

This should be pretty straight forward after you've got the above built.

Regards,
Blair

-- 
Blair Zajac, Ph.D.
<bl...@orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Subversion and OS X 10.4

Posted by Jeremy Pereira <je...@jeremyp.net>.
On 1 Sep 2006, at 19:13, Blake Winton wrote:

> Jeremy Pereira wrote:
>
> Thank you replying, I was starting to think that I would never get  
> it working, so hearing from someone who's able to build it cleanly  
> is a huge boost to my morale.
>
>> I've had a go at this myself to see if I have any problems, but it  
>> all seemed to work.
>> My Swig config string is:
>> ./configure --with-python=/usr/bin/python
>
> Okay, the first thing that I've noticed that's different between  
> our setups is that I'm using MacPython (so that I can import  
> AppKit, and WebKit, and all sorts of other AppleScript goodies),  
> which puts itself in /Library/Frameworks/Python.framework/Versions/ 
> Current/bin/python

Is that different from the Python that comes bundled with Mac OS X?   
My /usr/bin/python is merely a symlink to /System/Library/Frameworks/ 
Python.framework/Versions/2.3/bin/python

>
>> My Subversion config string is:
>> ./configure PYTHON=/usr/bin/python \
>>     --with-apxs=/usr/local/apache2/bin/apxs \
>>     --with-berkeley-db=/usr/local/BerkeleyDB.4.3 \
>>     --with-ssl --with-editor=vi \
>>     --with-swig=/usr/local/bin/swig
>> Again, don't know if I need the PYTHON=... bit
>
> Since I'm not using berkeley-db, and I have python in a different  
> location, I used a slightly different config string, but mostly the  
> same.
>
>> I got the below warnings in the subversion configuration which I  
>> thought was quite amusing...
>> configure: WARNING: Detected SWIG version 1.3.29
>> configure: WARNING: This is not compatible with Subversion
>> configure: WARNING: Subversion can use SWIG version 1.3.24 or later
>> During make swig-py I got some further warnings:
>
> And here's the second place we seem to differ.
> After I did the ./configure step, I did a "make && make check"  
> step, which seemed to work okay, but then "sudo make install"  
> complained about
>
> cp .libs/libapr-0.0.9.7.dylib /usr/local/apr/lib/libapr-0.0.9.7.dylib
> cp: /usr/local/apr/lib/libapr-0.0.9.7.dylib: Too many levels of  
> symbolic links

That looks like you've already got a broken apr install in place.   
Others on the list might be able to shed some light on that, but I'd  
start by clearing out everything that Subversion installs and running  
install again.

>
> Do I need to be root to run ./configure or make or make check?

No

>
>> I haven't actually tested the swig bindings because I know nothing  
>> about Python programming.  If you'd like to give me a small Python  
>> script that exercises the swig libraries, I'll see if they work  
>> properly.
>
> Hopefully, you can just run:
> python -c "import svn"

OK that works fine for me.  Do you want my binaries :)

>
> and if it doesn't complain about something like:
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
> ImportError: No module named svn
>
> you should be good.
>
> Thanks again,
> Blake.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Subversion and OS X 10.4

Posted by Jeremy Pereira <je...@jeremyp.net>.
On 1 Sep 2006, at 00:41, Blake Winton wrote:

> Hello,
>
> I've been trying to get the Subversion bindings for Python working  
> with my Framework Python under Mac OS X 10.4.  I would also like to  
> have my own repository, available under http(s)://latte.ca/svn/  
> using the WebDAV interface.
>
> I've gone back and forth, trying to get this all working, with no  
> success.  The most recent error (after installing Apache 2, and  
> disabling the default Apache that came with OS X, and after  
> compiling and configuring subversion three or four times (some  
> with ./autogen.sh because a webpage recommended it, some without  
> because some email said not to, some with an old apxs from  
> DarwinPorts, some without, etc, etc) was make swig-py complaining  
> about missing symbols.  That led me to a page which said that I  
> needed to compile neon myself, which I tried to, but apparently got  
> version 26 instead of version 25.5.

I've had a go at this myself to see if I have any problems, but it  
all seemed to work.

I built Apache 2.0.58, Berkeley DB 4.3.29, swig 1.3.29 and Subversion  
1.3.1 from source on an Intel Mac with OS X 10.4.7 and using the gcc  
supplied with XCode 2.4 (gcc 4.0.1), there are no fink or Darwinports  
distributions hanging around.  I built Neon and APR from the versions  
included in the Subversion distribution.  Everything is installed in / 
usr/local.

My Apache config string is:

./configure --prefix=/usr/local/apache2 --enable-dav --enable-dav-fs  
--enable-ssl --enable-so

My Swig config string is:

./configure --with-python=/usr/bin/python

(Don't know if I  strictly need the --with-python switch, since it's  
the default location)

My Subversion config string is:

./configure PYTHON=/usr/bin/python \
	--with-apxs=/usr/local/apache2/bin/apxs \
	--with-berkeley-db=/usr/local/BerkeleyDB.4.3 \
	--with-ssl --with-editor=vi \
	--with-swig=/usr/local/bin/swig

Again, don't know if I need the PYTHON=... bit

I got the below warnings in the subversion configuration which I  
thought was quite amusing...

configure: WARNING: Detected SWIG version 1.3.29
configure: WARNING: This is not compatible with Subversion
configure: WARNING: Subversion can use SWIG version 1.3.24 or later

During make swig-py I got some further warnings:

libtool: link: warning: `/usr/lib/gcc/i686-apple- 
darwin8/4.0.1/../../..//libiconv.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i686-apple- 
darwin8/4.0.1/../../..//libiconv.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i686-apple- 
darwin8/4.0.1/../../..//libiconv.la' seems to be moved

but no missing symbols and the dylibs have built OK

I haven't actually tested the swig bindings because I know nothing  
about Python programming.  If you'd like to give me a small Python  
script that exercises the swig libraries, I'll see if they work  
properly.

>
> So, I'm kind of tired and disillusioned at the whole process, and  
> I'm asking for help.  Is there a set of steps I can follow to get  
> all of the following:
> 1) Subversion installed.
> 2) The Python bindings installed into my Framework Python.
> 3) A repository which I can access from http://latte.ca/svn/
>
> (And to think I bought a Mac because I was tired of the endless  
> adminstration I had to do on my FreeBSD box.)
>
> Thank you all for any help you may be able to provide,
> Blake.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org