Opened 12 years ago
Closed 9 years ago
#38594 closed defect (invalid)
cairo @1.12.14_0+universal+x11 build failure: /opt/local/lib/libexpat.la: No such file or directory
Reported by: | connortk@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ||
Port: | cairo |
Description
Over past week i have been trying to fix but with no luck these errors when installing ports. My xcode is installed and i have the command line tools. Im running Mountain Lion and was following: http://www.davidbaumgold.com/tutorials/wine-mac/.
I put in:
sudo port install wine
and get:
Error: Port wine not found
after i did
sudo port sync
and again did
sudo port install wine
i get a really long log and it says
Warning: xcodebuild exists but failed to execute Warning: Xcode does not appear to be installed; most ports will likely fail to build.
when in fact it is installed! Here is the rest of the log
---> Computing dependencies for wine ---> Dependencies to be installed: expat fontconfig freetype bzip2 zlib libiconv gstreamer010 bison gettext ncurses m4 xz flex glib2 libffi perl5 perl5.12 gdbm libxml2 gstreamer010-gst-plugins-base gnome-vfs desktop-file-utils popt gconf dbus-glib dbus gtk2 atk gobject-introspection cairo libpixman libpng lzo2 pkgconfig xorg-libXext xorg-libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto xorg-xextproto xorg-xcb-util xrender xorg-renderproto gdk-pixbuf2 jasper jpeg tiff hicolor-icon-theme pango Xft2 harfbuzz graphite2 cmake libidn icu shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-inputproto xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser orbit2 libidl policykit gnome-doc-utils docbook-xml docbook-xml-4.1.2 docbook-xml-4.2 xmlcatmgr docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 docbook-xml-5.0 docbook-xsl iso-codes libxslt py27-libxml2 rarian gnome-mime-data libtheora libvorbis libogg orc xorg-libice xorg-libsm lcms mesa xorg-dri2proto xorg-glproto xorg-libXmu xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto ---> Fetching archive for expat ---> Attempting to fetch expat-2.1.0_0+universal.darwin_12.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/expat ---> Attempting to fetch expat-2.1.0_0+universal.darwin_12.i386-x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/sites/packages.macports.org/expat ---> Installing expat @2.1.0_0+universal Error: org.macports.install for port expat returned: couldn't execute "/usr/bin/tar": Bad CPU type in executable Error: Failed to install expat Please see the log file for port expat for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log Error: The following dependencies were not installed: expat fontconfig freetype bzip2 zlib libiconv gstreamer010 bison gettext ncurses m4 xz flex glib2 libffi perl5 perl5.12 gdbm libxml2 gstreamer010-gst-plugins-base gnome-vfs desktop-file-utils popt gconf dbus-glib dbus gtk2 atk gobject-introspection cairo libpixman libpng lzo2 pkgconfig xorg-libXext xorg-libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto xorg-xextproto xorg-xcb-util xrender xorg-renderproto gdk-pixbuf2 jasper jpeg tiff hicolor-icon-theme pango Xft2 harfbuzz graphite2 cmake libidn icu shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-inputproto xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser orbit2 libidl policykit gnome-doc-utils docbook-xml docbook-xml-4.1.2 docbook-xml-4.2 xmlcatmgr docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 docbook-xml-5.0 docbook-xsl iso-codes libxslt py27-libxml2 rarian gnome-mime-data libtheora libvorbis libogg orc xorg-libice xorg-libsm lcms mesa xorg-dri2proto xorg-glproto xorg-libXmu xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port wine failed
Another problem:
also here is another error i get and it is about how my mac cannot extract tarballs:
i put in:
sudo port selfupdate
and get:
---> Updating MacPorts base sources using rsync Error: /opt/local/bin/port: port selfupdate failed: Failed to extract MacPorts sources from tarball!
i get the tarballs error a lot and do not know why. And another error is "Bad CPU type in executable", which is just as annoying.
Please help me fix all of these errors so i can get macports working!
Attachments (4)
Change History (27)
Changed 12 years ago by connortk@…
Attachment: | sources.conf added |
---|
Changed 12 years ago by connortk@…
comment:1 Changed 12 years ago by connortk@…
i have added my most recent main.log of:
sudo port install wine
comment:2 Changed 12 years ago by cooljeanius (Eric Gallager)
It looks like the error is actually with expat, not wine. Try attaching the main.log for expat. Also the sources.conf file looks like you haven't changed it from the default so I don't know why you included that...
comment:3 follow-up: 5 Changed 12 years ago by cooljeanius (Eric Gallager)
Also you say Xcode is actually installed, have you accepted the license agreement and installed the Command-Line Tools and everything? What does xcodebuild -version
return?
comment:5 follow-up: 16 Changed 12 years ago by connortk@…
Replying to egall@…:
Also you say Xcode is actually installed, have you accepted the license agreement and installed the Command-Line Tools and everything? What does
xcodebuild -version
return?
xcodebuild -version
Xcode 4.5.1 Build version 4G1004
i have fixed the xcode error warnings so far but the rest of the errors remain
comment:6 Changed 12 years ago by connortk@…
also about the Bad CPU Type error, even if i just type 'tar' into terminal i get this:
imac:~ connnor2$ tar -bash: /usr/bin/tar: Bad CPU type in executable
comment:7 follow-up: 9 Changed 12 years ago by larryv (Lawrence Velázquez)
:debug:activate Using /usr/bin/bzip2 :info:activate sh: /usr/bin/tar: Bad CPU type in executable
Uhm.
What is the output of
$ file /usr/bin/{,bsd}tar
comment:8 Changed 12 years ago by connortk@…
/usr/bin/tar: Mach-O executable ppc /usr/bin/bsdtar: Mach-O 64-bit executable x86_64
comment:9 follow-up: 11 Changed 12 years ago by connortk@…
Replying to larryv@…:
:debug:activate Using /usr/bin/bzip2 :info:activate sh: /usr/bin/tar: Bad CPU type in executableUhm.
What is the output of
$ file /usr/bin/{,bsd}tar
Output:
/usr/bin/tar: Mach-O executable ppc /usr/bin/bsdtar: Mach-O 64-bit executable x86_64
comment:10 Changed 12 years ago by cooljeanius (Eric Gallager)
Replying to connortk@…:
Replying to larryv@…:
:debug:activate Using /usr/bin/bzip2 :info:activate sh: /usr/bin/tar: Bad CPU type in executableUhm.
What is the output of
$ file /usr/bin/{,bsd}tar/usr/bin/tar: Mach-O executable ppc /usr/bin/bsdtar: Mach-O 64-bit executable x86_64
OK, I'm not sure how you managed to have a ppc-only version of tar
on Mountain Lion, as the normal Mountain Lion tar
is supposed to be x86_64. Make sure you have all the latest system updates and stuff installed, and once you've done this, if you're still running into this problem, try reinstalling your system from scratch. In any case, this isn't a MacPorts problem, it's a problem with your OS being hosed.
comment:11 follow-up: 12 Changed 12 years ago by larryv (Lawrence Velázquez)
Replying to connortk@…:
Output:
/usr/bin/tar: Mach-O executable ppc /usr/bin/bsdtar: Mach-O 64-bit executable x86_64
How is this even possible? You’re on x86_64 Mountain Lion.
:debug:main OS darwin/12.2.0 (Mac OS X 10.8) arch i386
I’m pretty sure tar
is part of the core OS, so this doesn’t make me feel too good about the state of the rest of your system. I recommend just straight-up reinstalling the OS. This shouldn’t touch anything other than system files, so you don’t have to worry about your personal stuff getting lost.
comment:12 follow-up: 13 Changed 12 years ago by connortk@…
Replying to larryv@…:
Replying to connortk@…:
Output:
/usr/bin/tar: Mach-O executable ppc /usr/bin/bsdtar: Mach-O 64-bit executable x86_64How is this even possible? You’re on x86_64 Mountain Lion.
:debug:main OS darwin/12.2.0 (Mac OS X 10.8) arch i386I’m pretty sure
tar
is part of the core OS, so this doesn’t make me feel too good about the state of the rest of your system. I recommend just straight-up reinstalling the OS. This shouldn’t touch anything other than system files, so you don’t have to worry about your personal stuff getting lost.
I just updated to most recent version and got the same result in terminal. Will do that.
comment:13 follow-up: 14 Changed 12 years ago by larryv (Lawrence Velázquez)
Replying to connortk@…:
I just updated to most recent version and got the same result in terminal. Will do that.
Be sure to back up first, of course.
For reference, on my Mountain Lion system, /usr/bin/tar
is a symlink to bsdtar
.
comment:14 follow-up: 15 Changed 12 years ago by connortk@…
Replying to larryv@…:
Replying to connortk@…:
I just updated to most recent version and got the same result in terminal. Will do that.
Be sure to back up first, of course.
For reference, on my Mountain Lion system,
/usr/bin/tar
is a symlink tobsdtar
.
yes, I most defiantly backup tonight and reinstall. Thanks
comment:15 follow-up: 17 Changed 12 years ago by cooljeanius (Eric Gallager)
comment:16 follow-up: 18 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to connortk@…:
Xcode 4.5.1 Build version 4G1004
After you reinstall OS X, consider also updating to Xcode 4.6.1 (you can do this in the Mac App Store). Make sure you also update the Xcode command line tools (you can do this in the Xcode application's Preferences window, in the Downloads section).
comment:17 Changed 12 years ago by connortk@…
Replying to egall@…:
Replying to connortk@…:
defiantly
http://www.d-e-f-i-n-i-t-e-l-y.com
(sorry, it's a pet peeve)
i always spell that wrong! :(
comment:18 Changed 12 years ago by connortk@…
Replying to ryandesign@…:
Replying to connortk@…:
Xcode 4.5.1 Build version 4G1004After you reinstall OS X, consider also updating to Xcode 4.6.1 (you can do this in the Mac App Store). Make sure you also update the Xcode command line tools (you can do this in the Xcode application's Preferences window, in the Downloads section).
Will do.
comment:19 Changed 12 years ago by connortk@…
I reinstalled OS X and Tar file is updated. Wine was installing dependencies correctly until it started to install cairo , then an error had occurred. I tried syncing and clearing but no luck. I have attached the log file of it.
Also, all errors in my original post are gone, just the cairo one.
comment:20 Changed 12 years ago by cooljeanius (Eric Gallager)
Relevant part of log:
:info:build grep: /opt/local/lib/libexpat.la: No such file or directory :info:build sed: /opt/local/lib/libexpat.la: No such file or directory :info:build libtool: link: `/opt/local/lib/libexpat.la' is not a valid libtool archive :info:build make[3]: *** [libcairo.la] Error 1 :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.14-x86_64/src' :info:build make[2]: *** [all] Error 2 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.14-x86_64/src' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.14-x86_64' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.14-x86_64' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.14-x86_64" && /usr/bin/make -j4 -w all :info:build Exit code: 2
Hm, that's strange, I didn't think the .la
-file-killing patch was going to make it into MacPorts until 2.2... must be some other problem. Does /opt/local/lib/libexpat.la
actually exist? What does stat /opt/local/lib/libexpat.la
return for you? How about port installed expat
? If that returns something, how about port contents expat
?
comment:21 Changed 12 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|---|
Port: | cairo added |
Summary: | why are these error happening? → cairo @1.12.14_0+universal+x11 build failure: /opt/local/lib/libexpat.la: No such file or directory |
comment:22 Changed 12 years ago by jmroot (Joshua Root)
Given that expat failed to install as shown in the description, you should probably refresh it like so:
sudo port -f uninstall expat sudo port clean --all expat sudo port install expat
comment:23 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
here is sources file if it would help