انجمن ویکی قلم‌های فارسی
ورود / عضویت

مشکل mach-o but wrong architecture

بخش فنون تشخیص مشکل، تعمیر و نگهداری

مشکل mach-o but wrong architecture

پستتوسط shahrouz » 28 مه 2011, 12:29

سلام بر همگی
من از طرق مک پورت در حال نصب wireshark بودم روی مک بوک پرو ۷۲۳ در حین نصب libxslt-1.1.26 کار متوقف شده بود با اینکه حجمی هم نداره این libxslt .من کنسل کردم نصب از طریق پورت رو و libxslt-1.1.26 رو دانلود کردم و خودم دستی نصب کردم(طبق فایل اینیستال خود این بسته) بعد از ریستارت سیستم حالا فایرفاکس مرتب هنگ میکنه و اسکایپ و یاهو مسنجر و amule و Neoofficeو teamviewer و itunes و paragon اجرا نمیشن دو تو آخری هم موقعه ای که سیستم بالا میاد پیغام خطا هم میدن که به این شکل است:
تصویر
دیتیل اروور هم این هست :
کد: انتخاب همهٔ
Process:         iTunes [54710]
Path:            /Applications/iTunes.app/Contents/MacOS/iTunes
Identifier:      com.apple.iTunes
Version:         ??? (???)
Build Info:      iTunes-10121701~1
Code Type:       X86 (Native)
Parent Process:  launchd [182]

Date/Time:       2011-05-28 12:16:23.369 +0430
OS Version:      Mac OS X 10.6.6 (10J3210)
Report Version:  6

Interval Since Last Report:          7383 sec
Crashes Since Last Report:           772
Per-App Crashes Since Last Report:   3
Anonymous UUID:                      6ABD1C73-1F74-44AE-BA95-D36B57077298

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  Library not loaded: /usr/lib/libxslt.1.dylib
  Referenced from: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
  Reason: no suitable image found.  Did find:
   /usr/lib/libxslt.1.dylib: mach-o, but wrong architecture
   /usr/local/lib/libxslt.1.dylib: mach-o, but wrong architecture
   /usr/lib/libxslt.1.dylib: mach-o, but wrong architecture

Binary Images:
0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <283EE026-C0FE-1FF9-DB81-BFB155793157> /usr/lib/dyld

Model: MacBookPro8,2, BootROM MBP81.0047.B04, 4 processors, Intel Core i7, 2.2 GHz, 4 GB, SMC 1.69f1
Graphics: AMD Radeon HD 6750M, AMD Radeon HD 6750M, PCIe, 1024 MB
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 5.100.198.10.1)
Bluetooth: Version 2.4.3f1, 2 service, 19 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: AirPort, AirPort, en1
Serial ATA Device: TOSHIBA MK7559GSXF, 698.64 GB
Serial ATA Device: MATSHITADVD-R   UJ-8A8
USB Device: FaceTime HD Camera (Built-in), 0x05ac  (Apple Inc.), 0x8509, 0xfa200000 / 3
USB Device: Hub, 0x0424  (SMSC), 0x2513, 0xfa100000 / 2
USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 5
USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x821a, 0xfa113000 / 7
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x0245, 0xfa120000 / 4
USB Device: Hub, 0x0424  (SMSC), 0x2513, 0xfd100000 / 2
USB Device: Composite Device, 0x04d9  (Holtek Semiconductor, Inc.), 0x0499, 0xfd120000 / 4
USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0xfd110000 / 3


توی console messages هم مرتب اینا میاد:
کد: انتخاب همهٔ
5/28/11 11:29:02 AM   com.apple.usbmuxd[54215]   dyld: Library not loaded: /usr/lib/libxslt.1.dylib
5/28/11 11:29:02 AM   com.apple.usbmuxd[54215]     Referenced from: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
5/28/11 11:29:02 AM   com.apple.usbmuxd[54215]     Reason: no suitable image found.  Did find:
5/28/11 11:29:02 AM   com.apple.usbmuxd[54215]      /usr/lib/libxslt.1.dylib: mach-o, but wrong architecture
5/28/11 11:29:02 AM   com.apple.usbmuxd[54215]      /usr/local/lib/libxslt.1.dylib: mach-o, but wrong architecture
5/28/11 11:29:02 AM   com.apple.usbmuxd[54215]      /usr/lib/libxslt.1.dylib: mach-o, but wrong architecture
5/28/11 11:29:02 AM   com.apple.launchd[1]   (com.apple.usbmuxd[54215]) Job appears to have crashed: Trace/BPT trap
5/28/11 11:29:02 AM   com.apple.launchd[1]   (com.apple.usbmuxd) Throttling respawn: Will start in 10 seconds
5/28/11 11:29:02 AM   com.apple.ReportCrash.Root[54207]   2011-05-28 11:29:02.859 ReportCrash[54207:3b0b] Saved crash report for usbmuxd[54215] version ??? (???) to /Library/Logs/DiagnosticReports/usbmuxd_2011-05-28-112902_localhost.crash


ممنون میشم اگر کسی بتونه منو راهنمایی کنه
نماد کاربر
shahrouz
 
پست‌ها : 16
تاریخ عضویت: 24 آوریل 2011, 19:48

Re: مشکل mach-o but wrong architecture

پستتوسط Ali.Rastegar » 28 مه 2011, 15:46

اینبار که پیش اومده، ولی از این به بعد هیچوقت داخل usr/lib و usr/bin و... چیزی نصب یا کپی نکنید که فایل‌های اصلی سیستم عامل جایگزین نشن. اگر خواستید باید داخل usr/local/lib و usr/local/bin ، یا opt/local (مخصوص macports)و امثال اینها نصب کنید.
اما حالا این مشکلی که پیش اومده نشون میده نسخه‌ای از libxslt که architectureهای لازم رو نداره جایگزین نسخهٔ اصلی شده.
این دستور رو در Terminal وارد کنید:
کد: انتخاب همهٔ
file /usr/lib/libxslt.1.dylib

اگر با این متفاوت بود نشون میده اونی که کمه و باعث مشکل شده کدومه:
کد: انتخاب همهٔ
/usr/lib/libxslt.1.dylib: Mach-O universal binary with 3 architectures
/usr/lib/libxslt.1.dylib (for architecture x86_64):   Mach-O 64-bit dynamically linked shared library x86_64
/usr/lib/libxslt.1.dylib (for architecture i386):   Mach-O dynamically linked shared library i386
/usr/lib/libxslt.1.dylib (for architecture ppc7400):   Mach-O dynamically linked shared library ppc

---
راه حلش اینه که هرچیزی از حاصل libxslt که خودتون نصب کردید رو پاک کنید و اون نسخه‌ای که همراه سیستم عامل بوده رو جایگزین کنید. یا اینکه خودتون libxslt رو کامپایل کنید و موقع کامپایل مشخص کنید که architectureهای بالا رو می‌خواهید.
---
من می‌گردم ببینم چه چیزهایی قاعدتاً جایگزین شدن و اگر خواستید از سیستم خودم کپی می‌کنم و براتون ایمیل می‌کنم.
MacBook Pro 2015
نماد کاربر
Ali.Rastegar
Site Admin
 
پست‌ها : 2878
تاریخ عضویت: 26 مه 2004, 12:45

Re: مشکل mach-o but wrong architecture

پستتوسط shahrouz » 28 مه 2011, 16:47

ممنون از وقتی که گذاشتید خروجی دستوری که گفتید این هست :
کد: انتخاب همهٔ
/usr/lib/libxslt.1.dylib: Mach-O 64-bit dynamically linked shared library x86_64

من برای نصب wireshark این بسته رو نصب کردم که از طریق پورت هم آنیستالش کردم .
نماد کاربر
shahrouz
 
پست‌ها : 16
تاریخ عضویت: 24 آوریل 2011, 19:48

Re: مشکل mach-o but wrong architecture

پستتوسط Ali.Rastegar » 28 مه 2011, 17:51

خواهش می‌کنم. همونطور که حدس می‌زدم فقط ۶۴بیت از نوع x86_64 کامپایل شده و برای درست کار کردن باید حداقل i386 هم داشته باشید.
من می‌تونم فایل‌های خودم رو براتون ایمیل کنم، منتها قبل از پاک کردن فایل‌های خودتون و جایگزین کردنشون با فایل‌های من شدیداً توصیه می‌شه backup گرفته باشید از اطلاعات کامپیوترتون.
۲ راه حل:
۱) من فایل‌های خودم رو براتون می‌فرستم، اگر خواستید با مسئولیت خودتون فایل‌های yourinstall.pdf رو پاک کنید و فایل‌های من رو جایگزین کنید. فقط حتماً حواستون باشه که هیچ folder-ی رو replace یا پاک نکنید، فقط محتویات داخل folderها رو کپی کنید در جای مناسب. مثلاً از داخل bin، فایل xsltproc رو کپی کنید به usr/bin و به هیچ وجه bin رو با usr/bin جایگزین نکنید! به همین ترتیب محتوای pkgconfig رو به usr/lib/pkgconfig کپی کنید و... .

۲) یک راه بهتر!
طبق معمول توصیه میشه backup بگیرید، بعد:
یکبار دیگه libxslt-1.1.26 رو از اول extract کنید* و cd کنید به اونجا. بعد برای کامپایل و نصب این دستورها رو وارد کنید:
کد: انتخاب همهٔ
./configure CFLAGS="-arch x86_64 -arch i386" --prefix=/usr --disable-dependency-tracking

کد: انتخاب همهٔ
make

کد: انتخاب همهٔ
sudo make install

اگر شانس بیاریم بعد از restart باید همه چیز درست شده باشه. اگر شانس نیاریم و اوضاع مثل قبل باشه من فایل‌هامو براتون می‌فرستم. اگر خیلی بدشانس باشیم و سیستم بوت نشه شما خوشحال هستید که backup دارید :-)
* به جای extract مجدد می‌تونید make clean هم استفاده کنید اما برای احتیاط همون extract مجدد رو توصیه می‌کنم.
پیوست‌ها
defaultinstall.pdf
این فایل‌های روی کامپیوتر منه که احتمالاً از نصب اصلی Snow Leopard دست نخورده باقی مونده.
(67.86 KiB) دانلود 421 بار
yourinstall.pdf
اینها احتمالاً فایل‌هایی که برای شما در usr کپی شده و جایگزین قبلی‌ها شده.
(74.83 KiB) دانلود 409 بار
MacBook Pro 2015
نماد کاربر
Ali.Rastegar
Site Admin
 
پست‌ها : 2878
تاریخ عضویت: 26 مه 2004, 12:45

Re: مشکل mach-o but wrong architecture

پستتوسط shahrouz » 28 مه 2011, 22:55

همانطور که گفتید رفتم سراغ کامپایل دوباره اما وقتی make رو اجرا میکنم این ارور رو میگیرم :
کد: انتخاب همهٔ
ld: symbol(s) not found for architecture i386
 collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/Gl/Glst8W6AGzirE06v3Q9rQ++++TI/-Tmp-//ccB9nkwJ.out (No such file or directory)
make[2]: *** [xsltproc] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
نماد کاربر
shahrouz
 
پست‌ها : 16
تاریخ عضویت: 24 آوریل 2011, 19:48

Re: مشکل mach-o but wrong architecture

پستتوسط Ali.Rastegar » 29 مه 2011, 00:14

لفطاً چند خط قبلش رو هم بذارید، به نظر چیزهای دیگه‌ای هم که برای کامپایل libxslt لازم هستند قبلاً یا خودتان فقط ۶۴بیت* کامپایل کرده‌اید یا macports.
مخصوصاً به خطهای ld: warning: in ... توجه کنید.
* این مشکل از اینجایی پیش میاد که Snow Leopard پیش‌فرض کامپایل برنامه‌ها رو x86_64 میذاره و تا تغییرش ندیم این وضع هست.
MacBook Pro 2015
نماد کاربر
Ali.Rastegar
Site Admin
 
پست‌ها : 2878
تاریخ عضویت: 26 مه 2004, 12:45

Re: مشکل mach-o but wrong architecture

پستتوسط shahrouz » 29 مه 2011, 00:59

من برای کامپایل دستورات زیر رو وارد کردم(طبق فایل اینستال خود پکیج):
کد: انتخاب همهٔ
./configure --prefix=/usr
make
sudo make install

موقعه نصب از طریق پورت خیلی پکیج نصب شد تا به این لایبرری رسید و گیر کرد .

تمام خروجی دستور make
کد: انتخاب همهٔ
make  all-recursive
Making all in libxslt
make[2]: Nothing to be done for `all'.
Making all in libexslt
make[2]: Nothing to be done for `all'.
Making all in xsltproc
/bin/sh ../libtool --tag=CC   --mode=link gcc  -arch x86_64 -arch i386 -Wall   -o xsltproc xsltproc.o  ../libxslt/libxslt.la ../libexslt/libexslt.la -L/opt/local/lib -lxml2 -lz -lpthread -liconv -lm -L/opt/local/lib -lxml2 -lz -lpthread -liconv -lm   
libtool: link: gcc -arch x86_64 -arch i386 -Wall -o .libs/xsltproc xsltproc.o  ../libxslt/.libs/libxslt.dylib -L/opt/local/lib ../libexslt/.libs/libexslt.dylib /Users/shahrouz/Downloads/libxslt-1.1.26/libxslt/.libs/libxslt.dylib /opt/local/lib/libxml2.dylib -lz -lpthread /opt/local/lib/libiconv.dylib -lm
ld: warning: in /opt/local/lib/libxml2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libz.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libiconv.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
  "_xmlCheckVersion", referenced from:
      _main in xsltproc.o
  "_xmlNoNetExternalEntityLoader", referenced from:
      _xmlNoNetExternalEntityLoader$non_lazy_ptr in xsltproc.o
     (maybe you meant: _xmlNoNetExternalEntityLoader$non_lazy_ptr)
  "_xmlXIncludeProcessFlags", referenced from:
      _xsltProcess in xsltproc.o
      _main in xsltproc.o
  "_xmlStrEqual", referenced from:
      _xsltProcess in xsltproc.o
  "_xmlSetExternalEntityLoader", referenced from:
      _main in xsltproc.o
  "_htmlReadFile", referenced from:
      _xsltProcess in xsltproc.o
      _main in xsltproc.o
  "_xmlMemoryDump", referenced from:
      _main in xsltproc.o
  "_xmlInitMemory", referenced from:
      _main in xsltproc.o
  "_xmlStrcat", referenced from:
      _xsltprocExternalEntityLoader in xsltproc.o
      _xsltprocExternalEntityLoader in xsltproc.o
      _main in xsltproc.o
      _main in xsltproc.o
      _main in xsltproc.o
      _main in xsltproc.o
  "_xmlStrchr", referenced from:
      _main in xsltproc.o
      _main in xsltproc.o
  "_xmlReadFile", referenced from:
      _xsltProcess in xsltproc.o
      _main in xsltproc.o
      _main in xsltproc.o
  "_xmlCleanupParser", referenced from:
      _main in xsltproc.o
  "_xmlFreeDoc", referenced from:
      _xsltProcess in xsltproc.o
      _xsltProcess in xsltproc.o
      _xsltProcess in xsltproc.o
      _xsltProcess in xsltproc.o
      _xsltProcess in xsltproc.o
      _xsltProcess in xsltproc.o
      _main in xsltproc.o
  "_xmlStrncmp", referenced from:
      _xsltSubtreeCheck in xsltproc.o
  "_xmlGetExternalEntityLoader", referenced from:
      _main in xsltproc.o
  "_xmlStrdup", referenced from:
      _xsltprocExternalEntityLoader in xsltproc.o
      _main in xsltproc.o
      _main in xsltproc.o
      _main in xsltproc.o
  "_xmlParserMaxDepth", referenced from:
      _xmlParserMaxDepth$non_lazy_ptr in xsltproc.o
     (maybe you meant: _xmlParserMaxDepth$non_lazy_ptr)
  "_xmlStrndup", referenced from:
      _parsePath in xsltproc.o
  "_xmlDebugDumpDocument", referenced from:
      _xsltProcess in xsltproc.o
  "_xmlParserVersion", referenced from:
      _xmlParserVersion$non_lazy_ptr in xsltproc.o
     (maybe you meant: _xmlParserVersion$non_lazy_ptr)
  "_xmlLoadCatalogs", referenced from:
      _main in xsltproc.o
  "_xmlStrlen", referenced from:
      _xsltSubtreeCheck in xsltproc.o
  "_xmlFree", referenced from:
      _xmlFree$non_lazy_ptr in xsltproc.o
     (maybe you meant: _xmlFree$non_lazy_ptr)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/Gl/Glst8W6AGzirE06v3Q9rQ++++TI/-Tmp-//ccs4MRAe.out (No such file or directory)
make[2]: *** [xsltproc] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
shahrouz:libxslt-1.1.26 shahrouz$

ممنون از توجه‌تون
نماد کاربر
shahrouz
 
پست‌ها : 16
تاریخ عضویت: 24 آوریل 2011, 19:48

Re: مشکل mach-o but wrong architecture

پستتوسط Ali.Rastegar » 29 مه 2011, 20:09

برای حل این مشکل دو راه دارید:
۱) از dylibهای همراه سیستم‌عامل که در usr/lib هستن استفاده کنید و اونها برای هرسهٔ ppc، i386 و x86_64 ساخته شدن.
برای این کار می‌تونید موقتاً opt رو از PATH بردارید. برای برداشتن opt از PATH یک راه اینه که این دستور رو در Terminal اجرا کنید:
کد: انتخاب همهٔ
open ~/.bash_profile

یک فایل متنی باز میشه. بعد پشت این خط:
کد: انتخاب همهٔ
export PATH=/opt/local/bin:/opt/local/sbin:$PATH

یه # بنویسید و ذخیره کنید. که میشه:
کد: انتخاب همهٔ
# export PATH=/opt/local/bin:/opt/local/sbin:$PATH

در هر پنجره یا tab جدید Terminal که از این به بعد باز می‌کنید تغییرات باید اعمال شده باشه.
برای اطمینان این دستور رو وارد کنید:
کد: انتخاب همهٔ
echo $PATH

نباید نام و نشانی از opt در نتیجهٔ این دستور ببینید.
(اگر یک درصد دستور open پیغام خطا داد که نمی‌دونه با چه برنامه‌ای باز کنه می‌تونید به جای open تایپ کنید nano و از همون Terminal ویرایش کنید و بعد با Crtl-x و پاسخ y ویرایش خودتون رو ذخیره کنید.)
حالا make clean کنید و دوباره بر طبق همون مراحلی که گفتم configure و make و... رو انجام بدید:
[نمایش]
یکبار دیگه libxslt-1.1.26 رو از اول extract کنید* و cd کنید به اونجا. بعد برای کامپایل و نصب این دستورها رو وارد کنید:
کد: انتخاب همهٔ
./configure CFLAGS="-arch x86_64 -arch i386" --prefix=/usr --disable-dependency-tracking

کد: انتخاب همهٔ
make

کد: انتخاب همهٔ
sudo make install

اگر شانس بیاریم بعد از restart باید همه چیز درست شده باشه. اگر شانس نیاریم و اوضاع مثل قبل باشه من فایل‌هامو براتون می‌فرستم. اگر خیلی بدشانس باشیم و سیستم بوت نشه شما خوشحال هستید که backup دارید :-)
* به جای extract مجدد می‌تونید make clean هم استفاده کنید اما برای احتیاط همون extract مجدد رو توصیه می‌کنم.

اگر بعد از برداشتن opt کامپایل با موفقیت انجام شد وsudo make install هم با موفقیت انجام شد و بعد از restart مشکل شما هم حل شد باز برای استفاده از MacPorts لازمه که برعکس مراحل بالا اینبار # رو از اول خط حذف کنید.

۲) راه حل دیگه اینه که بسته‌های لازم نصب شده در macports (که در opt هستن، فقط ۶۴بیت کامپایل شدن و ldسراغ اونها رفته و باعث مشکل شده) رو دوباره با universal variant نصب کنید که معادل همون arch x86_64 با arch i386 که بالا توضیح دادم هست. مثلاً یک همچین چیزی میشه:
کد: انتخاب همهٔ
sudo port install zlib +universal

کد: انتخاب همهٔ
sudo port install libxml2 +universal

کد: انتخاب همهٔ
sudo port install libiconv +universal

-------
من به خاطر مشکل این دوستمون که الان libxslt اصلی سیستم رو دستکاری کردن برای prefix گذاشتم usr/. باقی کاربرها که مشکل مشابه ایشون رو ندارن به هیچ وجه نباید usr/ خالی رو به عنوان prefix بدن و حداقل از usr/local/ باید استفاده کنن.
آخرین ویرایش توسط Ali.Rastegar on 29 مه 2011, 20:15, ویرایش شده در 2.
دلیل: تلاش برای واضحتر کردن توضیحات!
MacBook Pro 2015
نماد کاربر
Ali.Rastegar
Site Admin
 
پست‌ها : 2878
تاریخ عضویت: 26 مه 2004, 12:45

Re: مشکل mach-o but wrong architecture

پستتوسط shahrouz » 29 مه 2011, 23:46

فایل bash_profile وجود نداشت ولی تو فایل profile. اون خط بود و کامنتش کردم ولی مشکل همچنان پا برجاست و همون ارور قبلی رو میده این هم خروجی configure هست :
کد: انتخاب همهٔ
checking build system type... i386-apple-darwin10.7.1
checking host system type... i386-apple-darwin10.7.1
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for rm... /bin/rm
checking for mv... /bin/mv
checking for tar... /usr/bin/tar
checking for xmllint... /opt/local/bin/xmllint
checking for xsltproc... /opt/local/bin/xsltproc
checking for ANSI C header files... (cached) yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.7.1 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_join in -lpthread... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking xlocale.h usability... yes
checking xlocale.h presence... yes
checking for xlocale.h... yes
checking if xlocale program link... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking nan.h usability... no
checking nan.h presence... no
checking for nan.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking fp_class.h usability... no
checking fp_class.h presence... no
checking for fp_class.h... no
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking ansidecl.h usability... no
checking ansidecl.h presence... no
checking for ansidecl.h... no
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for sys/stat.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stat... yes
checking for _stat... no
checking for isnan... yes
checking for isinf... yes
checking for pow... yes
checking for floor... yes
checking for fabs... yes
checking for gettimeofday... yes
checking for mktime... yes
checking for localtime... yes
checking for localtime_r... yes
checking for asctime... yes
checking for time... yes
checking for gmtime_r... yes
checking for ftime... yes
checking for printf... yes
checking for sprintf... yes
checking for fprintf... yes
checking for snprintf... yes
checking for vfprintf... yes
checking for vsprintf... yes
checking for vsnprintf... yes
checking for sscanf... yes
checking for perl... perl
checking for python... /usr/bin/python
PYTHON is pointing at /usr/bin/python
Found Python version 2.6
Warning: Missing libxml2-python
checking for libgcrypt-config... no
Crypto extensions will not be available. Install libgcrypt and reconfigure to make available.
Enabling debugger
checking for libxml libraries >= 2.6.27... 2.7.8 found
checking whether shared libraries will be built (required for plugins)... yes
checking libxml2 module support... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libxslt.pc
config.status: creating libexslt.pc
config.status: creating libxslt/Makefile
config.status: creating libxslt/xsltconfig.h
config.status: creating libxslt/xsltwin32config.h
config.status: creating libexslt/Makefile
config.status: creating libexslt/exsltconfig.h
config.status: creating xsltproc/Makefile
config.status: creating python/Makefile
config.status: creating python/tests/Makefile
config.status: creating tests/Makefile
config.status: creating tests/docs/Makefile
config.status: creating tests/REC1/Makefile
config.status: creating tests/REC2/Makefile
config.status: creating tests/REC/Makefile
config.status: creating tests/general/Makefile
config.status: creating tests/reports/Makefile
config.status: creating tests/extensions/Makefile
config.status: creating tests/namespaces/Makefile
config.status: creating tests/keys/Makefile
config.status: creating tests/numbers/Makefile
config.status: creating tests/documents/Makefile
config.status: creating tests/xmlspec/Makefile
config.status: creating tests/multiple/Makefile
config.status: creating tests/xinclude/Makefile
config.status: creating tests/XSLTMark/Makefile
config.status: creating tests/docbook/Makefile
config.status: creating tests/exslt/Makefile
config.status: creating tests/exslt/common/Makefile
config.status: creating tests/exslt/functions/Makefile
config.status: creating tests/exslt/math/Makefile
config.status: creating tests/exslt/sets/Makefile
config.status: creating tests/exslt/strings/Makefile
config.status: creating tests/exslt/date/Makefile
config.status: creating tests/exslt/dynamic/Makefile
config.status: creating tests/plugins/Makefile
config.status: creating doc/Makefile
config.status: creating xslt-config
config.status: creating libxslt.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory


در مورد راه‌ حل دوم که فرمودید طبق خروجی دستور port installed این بسته ها نصب شده :
کد: انتخاب همهٔ
  autoconf @2.68_2 (active)
  automake @1.11.1_0 (active)
  atk @1.32.0_0 (active)
  bzip2 @1.0.6_0 (active)
  c-ares @1.7.4_0 (active)
  cairo @1.10.2_3+x11 (active)
  db46 @4.6.21_6 (active)
  dbus @1.2.24_1 (active)
  docbook-xml @5.0_0 (active)
  docbook-xml-4.1.2 @4.1.2_1 (active)
  docbook-xml-4.2 @4.2_0 (active)
  docbook-xml-4.3 @4.3_0 (active)
  docbook-xml-4.4 @4.4_0 (active)
  docbook-xml-4.5 @4.5_0 (active)
  docbook-xml-5.0 @5.0_0 (active)
  docbook-xsl @1.76.1_0 (active)
  ee @1.4.6_0 (active)
  expat @2.0.1_1 (active)
  fontconfig @2.8.0_0 (active)
  freetype @2.4.4_0 (active)
  gdbm @1.8.3_3 (active)
  gdk-pixbuf2 @2.22.1_1 (active)
  getopt @1.1.4_1 (active)
  gettext @0.18.1.1_2 (active)
  glib2 @2.28.7_0 (active)
  gnome-common @2.28.0_0 (active)
  gnome-doc-utils @0.20.6_0+python27 (active)
  gperf @3.0.4_0 (active)
  gtk-doc @1.17_0+python27 (active)
  gtk2 @2.24.4_0+x11 (active)
  help2man @1.39.3_0 (active)
  intltool @0.40.6_0 (active)
  iso-codes @3.25.1_0 (active)
  jasper @1.900.1_7 (active)
  jpeg @8c_0 (active)
  libgpg-error @1.10_0 (active)
  libiconv @1.13.1_0 (active)
  libpcap @1.1.1_0 (active)
  libpixman @0.22.0_0 (active)
  libpng @1.4.7_0 (active)
  libtool @2.4_0 (active)
  libxml2 @2.7.8_0 (active)
  libxslt @1.1.26_0 (active)
  m4 @1.4.16_0 (active)
  ncurses @5.9_0 (active)
  ncursesw @5.8_0 (active)
  netcat @1.10_2 (active)
  openssl @1.0.0d_0 (active)
  p5-getopt-long @2.38_1 (active)
  p5-locale-gettext @1.05_5 (active)
  p5-pathtools @3.33_1 (active)
  p5-scalar-list-utils @1.23_1 (active)
  p5-xml-parser @2.40_1 (active)
  pango @1.28.4_0+x11 (active)
  perl5 @5.12.3_1+perl5_12 (active)
  perl5.12 @5.12.3_1 (active)
  pkgconfig @0.25_2 (active)
  py27-libxml2 @2.6.21_0 (active)
  python27 @2.7.1_3 (active)
  python_select @0.3_1 (active)
  rarian @0.8.1_0 (active)
  readline @6.2.000_0 (active)
  shared-mime-info @0.90_0 (active)
  sqlite3 @3.7.6_0 (active)
  tiff @3.9.4_0 (active)
  Xft2 @2.2.0_0 (active)
  xmlcatmgr @2.2_1 (active)
  xorg-bigreqsproto @1.1.1_0 (active)
  xorg-compositeproto @0.4.2_0 (active)
  xorg-damageproto @1.2.1_0 (active)
  xorg-fixesproto @5.0_0 (active)
  xorg-inputproto @2.0.1_0 (active)
  xorg-kbproto @1.0.5_0 (active)
  xorg-libpthread-stubs @0.3_0 (active)
  xorg-libX11 @1.4.3_0 (active)
  xorg-libXau @1.0.6_0 (active)
  xorg-libxcb @1.7_0+python27 (active)
  xorg-libXcomposite @0.4.3_0 (active)
  xorg-libXcursor @1.1.11_0 (active)
  xorg-libXdamage @1.1.3_0 (active)
  xorg-libXdmcp @1.1.0_0 (active)
  xorg-libXext @1.3.0_0 (active)
  xorg-libXfixes @5.0_0 (active)
  xorg-libXi @1.4.1_0 (active)
  xorg-libXinerama @1.1.1_0 (active)
  xorg-libXrandr @1.3.1_0 (active)
  xorg-randrproto @1.3.2_0 (active)
  xorg-renderproto @0.11.1_0 (active)
  xorg-util-macros @1.13.0_0 (active)
  xorg-xcb-proto @1.6_0+python27 (active)
  xorg-xcb-util @0.3.8_0 (active)
  xorg-xcmiscproto @1.2.1_0 (active)
  xorg-xextproto @7.2.0_0 (active)
  xorg-xf86bigfontproto @1.2.0_0 (active)
  xorg-xineramaproto @1.2.1_0 (active)
  xorg-xproto @7.0.21_0 (active)
  xorg-xtrans @1.2.6_0 (active)
  xrender @0.9.6_0 (active)
  zlib @1.2.5_0 (active)

همشون رو به همون روشی که فرمودید دوباره نصب کنم؟
نماد کاربر
shahrouz
 
پست‌ها : 16
تاریخ عضویت: 24 آوریل 2011, 19:48

Re: مشکل mach-o but wrong architecture

پستتوسط Ali.Rastegar » 30 مه 2011, 00:30

براى راه اول)
هنوز فكر كنم opt رو يه جايى تو path داشته باشيد.
براى راه دوم)
همون ٣ بسته كه دستورشو گذاشتم بايد كفايت كنه و خودش اگر لازم ببينه بسته هاى ديگه رو هم universal ميكنه. 
MacBook Pro 2015
نماد کاربر
Ali.Rastegar
Site Admin
 
پست‌ها : 2878
تاریخ عضویت: 26 مه 2004, 12:45

Re: مشکل mach-o but wrong architecture

پستتوسط shahrouz » 30 مه 2011, 12:24

یکم تو نت سرچ کردم و چند تا از فایلهایی که مسیر سیستم رو توش تعریف میکردن پیدا کردن ولی غیر از اونی که گفتم هیچکدومشون تو سیستم من نیست .سه تا بسته رو هم دوباره نصب کردم ولی مشکل پا برجاست .ممنون از وقتی که گذاشتید واقعا ممنونم .میشه یک راهنمای مناسب برای برگردوندن سیستم به حالت کارخانه و نصب دوباره سیستم عامل معرفی کنید فکرکنم بهتر باشه به حالت اول برگردونم و این بار درست مواظبش باشم :دی  
نماد کاربر
shahrouz
 
پست‌ها : 16
تاریخ عضویت: 24 آوریل 2011, 19:48

Re: مشکل mach-o but wrong architecture

پستتوسط Ali.Rastegar » 30 مه 2011, 15:50

خواهش می‌کنم.
این را بخوانید:
viewtopic.php?f=4&t=1348&p=21270&#p21270
اگر حوصله نداشتید فقط از قسمت «حالا در Snow Leopard» بخوانید.
------
اگر سراغ نصب سیستم عامل رفتید که هیچ اما جهت اطلاع، بعد از اجرای آن ۳ دستور در macports و اطمینان از اینکه الان نسخهٔ universal پورت‌ها active است، باید دوباره libxslt را کامپایل می‌کردید بر طبق دستوری که arch i386 هم داشت. اما اگر این کار را کردید باز دقیقاً همان پیغام خطا را در همانجا داده خیلی عجیب است.
MacBook Pro 2015
نماد کاربر
Ali.Rastegar
Site Admin
 
پست‌ها : 2878
تاریخ عضویت: 26 مه 2004, 12:45

Re: مشکل mach-o but wrong architecture

پستتوسط shahrouz » 30 مه 2011, 21:23

دوباره کامپایل کردم همانطور که گفتید و مشکلی نداشت الان که هنوز ریستارت نکردم آیتونز که قبلا باز نمیشد باز میشه و مشکلی نداره یکم دیگه از فایلهام مونده که کپی کنم بعد ریستارت میکنم و نتیجه رو اینجا قرار میدم .
نماد کاربر
shahrouz
 
پست‌ها : 16
تاریخ عضویت: 24 آوریل 2011, 19:48

Re: مشکل mach-o but wrong architecture

پستتوسط Ali.Rastegar » 30 مه 2011, 21:44

اگر مشکل حل شده باشه که واقعاً جای خوشحالیه :-)
MacBook Pro 2015
نماد کاربر
Ali.Rastegar
Site Admin
 
پست‌ها : 2878
تاریخ عضویت: 26 مه 2004, 12:45

Re: مشکل mach-o but wrong architecture

پستتوسط shahrouz » 30 مه 2011, 22:19

ریستارت کردم و دیگه خبری از ارورهای زمان بالا اومدن سیستم نیست همه نرم افزارهایی که قبلا کار نمیکرد به خوبی داره کاره میکنه :-D
واقعا ممنونم بابت وقتی که گذاشتید.
نماد کاربر
shahrouz
 
پست‌ها : 16
تاریخ عضویت: 24 آوریل 2011, 19:48

بعدی


بازگشت به تعمیر و نگهداری


کاربران حاضر در این انجمن: بدون کاربران آنلاین و 8 مهمان