Re: Installing Apache2 on MacBook Pro issue
Good Morning, Actually, I don't understand why is it... I have a fresh XCode 2.4 install (from Apple Website) and I successfully selfupdated macports (which require compiling and which was successfull in using -arch i686). By compiling apache2 dependencies, it compilled several packages like expat and I don't remember others., everything went right, so libiconv seems to brings out some problems on my machine. If you want me to try something to check, do not hesitate because I'm stuck... Thanks, Julien Le 31 oct. 06 à 03:39, Marius Schamschula a écrit :
Julien,
In general it is not a good idea to mix build systems. DarwinPorts tries to build into its own space.
My (HMUG) ports go into /usr/local, whereas DP, by default settings, go into /opt/local. Thus the HMUG version of libiconv was not in the path for your DP build.
However, the real question is why the DP version of libiconv didn't work for you. Why do you have a PPC /opt/local/lib/libiconv.dylib on a i386 system?
On Oct 30, 2006, at 7:45 PM, Julien KRIVACSY wrote:
/tmp/libiconv-1.1 is because after several unsuccessful attempt from ports, I tried to download libiconv from a website (hmug if I remember well) and the install was successful but it didn't solved my problem because the version from hmug was not seen from port.
I just forgot to change directory.
I believe the recommended way is to download DarwinPorts-1.3.1-10.4.dmg from http://svn.macosforge.org/ repository/macports/downloads/Darwinports-1.3.1/ That's the one I took.
Thank you
Le 31 oct. 06 à 02:39, Ryan Schmidt a écrit :
On Oct 30, 2006, at 19:02, Julien KRIVACSY wrote:
I'm a newbie with macports and I am trying to install ruby on rails by port. To do this, I'm following this tutorial : http:// blog.duncandavidson.com/2006/04/sandboxing_rail.html
But while compiling libiconv (in apache2), I've got an error and I don't know what to do. Apparently, port is trying to compile a PPC version and I have got a MacBook Pro 1.83.
Here's the error : MacBook:/tmp/libiconv-1.11 root# port install apache2 ---> Staging libiconv into destroot [snip] /usr/bin/ld: warning /opt/local/lib/libiconv.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/bin/ld: Undefined symbols: __libiconv_version _iconv_canonicalize _libiconv _libiconv_close _libiconv_open _libiconvctl _libiconvlist collect2: ld returned 1 exit status make[1]: *** [install] Error 1 make: *** [install] Error 2
Some questions...
What is /tmp/libiconv-1.11? Why is that there?
How did you originally install MacPorts? I believe the recommended way is to download DarwinPorts-1.3.1-10.4.dmg from http://svn.macosforge.org/repository/macports/downloads/ Darwinports-1.3.1/ . That should be a Universal Binary and work properly on Intel and PowerPC Macs. Is that how you installed it?
Marius -- Marius Schamschula Webmaster
The Huntsville Macintosh Users Group www.hmug.org
webmaster at hmug dot org marius at schamschula dot com
On Oct 31, 2006, at 02:34, Julien KRIVACSY wrote:
But while compiling libiconv (in apache2), I've got an error and I don't know what to do. Apparently, port is trying to compile a PPC version and I have got a MacBook Pro 1.83.
Here's the error : MacBook:/tmp/libiconv-1.11 root# port install apache2 ---> Staging libiconv into destroot [snip] /usr/bin/ld: warning /opt/local/lib/libiconv.dylib cputype (18, architecture ppc) does not match cputype (7) for specified - arch flag: i386 (file not loaded)
I believe the recommended way is to download DarwinPorts-1.3.1-10.4.dmg from http://svn.macosforge.org/ repository/macports/downloads/Darwinports-1.3.1/
That's the one I took.
However, the real question is why the DP version of libiconv didn't work for you. Why do you have a PPC /opt/local/lib/ libiconv.dylib on a i386 system?
Actually, I don't understand why is it... I have a fresh XCode 2.4 install (from Apple Website) and I successfully selfupdated macports (which require compiling and which was successfull in using -arch i686). By compiling apache2 dependencies, it compilled several packages like expat and I don't remember others., everything went right, so libiconv seems to brings out some problems on my machine. If you want me to try something to check, do not hesitate because I'm stuck...
If you haven't already, I'd try completely removing MacPorts's libiconv and rebuilding it, see what happens. Something like... sudo port -f uninstall libiconv sudo port clean --all libiconv sudo port -v install libiconv
Hello Again, Here what I got with the first two commands :
Last login: Tue Oct 31 15:40:06 on ttyp1 Welcome to Darwin! MacBook:~ julien$ sudo port -f uninstall libiconv Password: Error: port uninstall failed: Registry error: libiconv not registered as installed. MacBook:~ julien$ sudo port clean --all libiconv ---> Cleaning libiconv MacBook:~ julien$
And here is the result of the install command (which was the same result as usual). This is all that I got (previous text was dropped from iTerm) : http://www.emprint.fr/port/port.log Thank you, Julien Le 31 oct. 06 à 16:13, Ryan Schmidt a écrit :
On Oct 31, 2006, at 02:34, Julien KRIVACSY wrote:
But while compiling libiconv (in apache2), I've got an error and I don't know what to do. Apparently, port is trying to compile a PPC version and I have got a MacBook Pro 1.83.
Here's the error : MacBook:/tmp/libiconv-1.11 root# port install apache2 ---> Staging libiconv into destroot [snip] /usr/bin/ld: warning /opt/local/lib/libiconv.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
I believe the recommended way is to download DarwinPorts-1.3.1-10.4.dmg from http://svn.macosforge.org/ repository/macports/downloads/Darwinports-1.3.1/
That's the one I took.
However, the real question is why the DP version of libiconv didn't work for you. Why do you have a PPC /opt/local/lib/ libiconv.dylib on a i386 system?
Actually, I don't understand why is it... I have a fresh XCode 2.4 install (from Apple Website) and I successfully selfupdated macports (which require compiling and which was successfull in using -arch i686). By compiling apache2 dependencies, it compilled several packages like expat and I don't remember others., everything went right, so libiconv seems to brings out some problems on my machine. If you want me to try something to check, do not hesitate because I'm stuck...
If you haven't already, I'd try completely removing MacPorts's libiconv and rebuilding it, see what happens. Something like...
sudo port -f uninstall libiconv sudo port clean --all libiconv sudo port -v install libiconv
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
On 31 okt 2006, at 16.41, Julien KRIVACSY wrote:
Hello Again,
Here what I got with the first two commands :
Last login: Tue Oct 31 15:40:06 on ttyp1 Welcome to Darwin! MacBook:~ julien$ sudo port -f uninstall libiconv Password: Error: port uninstall failed: Registry error: libiconv not registered as installed. MacBook:~ julien$ sudo port clean --all libiconv ---> Cleaning libiconv MacBook:~ julien$
After the `port clean` is /opt/local/lib/libiconv.dylib still present? I get the impression you've got libiconv from some other place than macports at some point. If you have any /opt/local/lib/ libiconv* files after the remove and clean. Remove them manually. - Daniel
Ok, I did this, and I had to remove /opt/local/bin/iconv, /opt/local/ include/iconv.h, libcharset.h, localcharset.h, /opt/local/lob/ libcharset.1.0.0.dylib, libcharset.a, libcharset.la, /opt/local/share/ man/man1/iconv.1.gz, /opt/local/share/man/man3/iconv.3.gz, iconv_close.3.gz, iconv_open.3.gz, iconvctl.3.gz and apparently it worked :) Thanks everybody, I'm now continuing the install of ruby on rails, maybe I will have more problems, see you soon :) ----------- Later :( : I found several others packages with the same problems, How can I remove everything and reinstall all that mess correctly ? Can I simply remove /opt and reinstall macports again ? Thank you, Julien
Hello Again,
Here what I got with the first two commands :
Last login: Tue Oct 31 15:40:06 on ttyp1 Welcome to Darwin! MacBook:~ julien$ sudo port -f uninstall libiconv Password: Error: port uninstall failed: Registry error: libiconv not registered as installed. MacBook:~ julien$ sudo port clean --all libiconv ---> Cleaning libiconv MacBook:~ julien$
And here is the result of the install command (which was the same result as usual). This is all that I got (previous text was dropped from iTerm) : http://www.emprint.fr/port/port.log
Thank you, Julien
Le 31 oct. 06 à 16:13, Ryan Schmidt a écrit :
On Oct 31, 2006, at 02:34, Julien KRIVACSY wrote:
> But while compiling libiconv (in apache2), I've got an error > and I don't know what to do. Apparently, port is trying to > compile a PPC version and I have got a MacBook Pro 1.83. > > Here's the error : > MacBook:/tmp/libiconv-1.11 root# port install apache2 > ---> Staging libiconv into destroot [snip] > /usr/bin/ld: warning /opt/local/lib/libiconv.dylib cputype > (18, architecture ppc) does not match cputype (7) for > specified -arch flag: i386 (file not loaded)
I believe the recommended way is to download DarwinPorts-1.3.1-10.4.dmg from http://svn.macosforge.org/ repository/macports/downloads/Darwinports-1.3.1/
That's the one I took.
However, the real question is why the DP version of libiconv didn't work for you. Why do you have a PPC /opt/local/lib/ libiconv.dylib on a i386 system?
Actually, I don't understand why is it... I have a fresh XCode 2.4 install (from Apple Website) and I successfully selfupdated macports (which require compiling and which was successfull in using -arch i686). By compiling apache2 dependencies, it compilled several packages like expat and I don't remember others., everything went right, so libiconv seems to brings out some problems on my machine. If you want me to try something to check, do not hesitate because I'm stuck...
If you haven't already, I'd try completely removing MacPorts's libiconv and rebuilding it, see what happens. Something like...
sudo port -f uninstall libiconv sudo port clean --all libiconv sudo port -v install libiconv
On Nov 1, 2006, at 08:51, Julien KRIVACSY wrote:
After the `port clean` is /opt/local/lib/libiconv.dylib still present? I get the impression you've got libiconv from some other place than macports at some point. If you have any /opt/local/lib/ libiconv* files after the remove and clean. Remove them manually.
Ok, I did this, and I had to remove /opt/local/bin/iconv, /opt/ local/include/iconv.h, libcharset.h, localcharset.h, /opt/local/ lob/libcharset.1.0.0.dylib, libcharset.a, libcharset.la, /opt/ local/share/man/man1/iconv.1.gz, /opt/local/share/man/man3/iconv. 3.gz, iconv_close.3.gz, iconv_open.3.gz, iconvctl.3.gz and apparently it worked :)
Thanks everybody, I'm now continuing the install of ruby on rails, maybe I will have more problems, see you soon :)
Later :( :
I found several others packages with the same problems, How can I remove everything and reinstall all that mess correctly ? Can I simply remove /opt and reinstall macports again ?
Basically, yes. See the FAQ: http://trac.macports.org/projects/macports/wiki/ FAQ#HowdoIremoveoruninstallMacPorts
participants (3)
-
Daniel Ericsson
-
Julien KRIVACSY
-
Ryan Schmidt