aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: pgplot cputype problem  (Read 5571 times)

nickthealmighty

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
pgplot cputype problem
« on: June 27, 2006, 02:44:58 PM »

im trying to install pgplot on a MacBook (intel processor) OSX10.4 and i keep getting the error message:

ranlib: archive member: libpgplot.a(grdate.o) cputype (7) does not match previous archive members cputype (18) (all members must match)
ranlib: archive member: libpgplot.a(grfileio.o) cputype (7) does not match previous archive members cputype (18) (all members must match)
ranlib: archive member: libpgplot.a(grgetc.o) cputype (7) does not match previous archive members cputype (18) (all members must match)
ranlib: archive member: libpgplot.a(grgmem.o) cputype (7) does not match previous archive members cputype (18) (all members must match)
ranlib: archive member: libpgplot.a(grtermio.o) cputype (7) does not match previous archive members cputype (18) (all members must match)
ranlib: archive member: libpgplot.a(gruser.o) cputype (7) does not match previous archive members cputype (18) (all members must match)
make: *** [libpgplot.a] Error 1

during 'make' and it won't compile. has anyone come across this cputype error before? is it todo with the intel processors?

any help appreciated!
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: pgplot cputype problem
« Reply #1 on: June 27, 2006, 04:58:35 PM »

Why do you post in en_linux when you talk about Mac OS 10? ;)

Have you tried to contact the developer of this app?
Logged

nickthealmighty

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: pgplot cputype problem
« Reply #2 on: June 27, 2006, 05:33:25 PM »

i was putting this in a linux thread because the installation is in a shell and i thought there might be some linux experts out there who could solve this problem. the makers of the program haven't got backt to me yet, but its free software so they might not...
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: pgplot cputype problem
« Reply #3 on: June 27, 2006, 05:36:53 PM »

Could you please tell us exactly what you typed in the terminal?
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: pgplot cputype problem
« Reply #4 on: June 27, 2006, 05:37:17 PM »

The error message sounds very much like a mismatch between your CPU architecture and the code you are trying to install.

Are you absolutely sure that the software you have downloaded was compiled for Intel CPUs?
Logged

nickthealmighty

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: pgplot cputype problem
« Reply #5 on: June 27, 2006, 05:46:09 PM »

pgplot is a pretty standard library so i don't see why not and its necessary to run a lot of other tools and software. the cputype refers to the exact architecture of the cpu, where 7 is x386 and 18 is powerpc, i just need to know how to change it so the program accepts it.
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: pgplot cputype problem
« Reply #6 on: June 27, 2006, 05:53:29 PM »

Actually I have no idea what's happening and why, but you might want to consult the man page of ranlib:

http://developer1.apple.com/documentation/Darwin/Reference/ManPages/man1/ranlib.1.html#//apple_ref/doc/man/1/ranlib

The "-arch_only arch_type" option to ranlib might be interesting.
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: pgplot cputype problem
« Reply #7 on: June 27, 2006, 06:01:51 PM »

The error message basically means: The static library named libpgplot.a contains multiple object files and some of them are for Intel CPUs while others are for PPC, which doesn't seem to work.

May I ask what exactly you did so far? Did you use a precompiled version of libpgplot.a or was it compiled on your system during the build process?

I think that we really need a Mac-experienced helper, I can just guess and I'm not sure if it really helps...

Another man page you might want to consult is that of lipo:

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/lipo.1.html
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: pgplot cputype problem
« Reply #8 on: June 27, 2006, 08:35:12 PM »

It sounds like you were trying to compile pgplot by hand from the original sources. For many apps this works just fine but some need some small tweaks so that they compile on OS X.

I would highly recommend using fink to install apps like pgplot. Fink is a package manager that is pretty easy to set up and use. Once setup properly, you just have type "fink install pgplot" and everything else is done for you. I have about 30 apps on my machine that I installed through fink.
Logged
Current aMule CVS builds for OS X can be found here.

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: pgplot cputype problem
« Reply #9 on: June 28, 2006, 04:54:01 AM »

This thread is so offtopic that baby jesus died of breast cancer. While crying.
Logged

nickthealmighty

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: pgplot cputype problem
« Reply #10 on: June 28, 2006, 03:46:22 PM »

thanks for all the help guys. i tried fink first and it has an unstable release of pgplot for intel macs, but it doesn't work. i'll have a look at those other things but im a bit over my head so i might have to find another solution!

thanks
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: pgplot cputype problem
« Reply #11 on: June 28, 2006, 09:46:42 PM »

You're welcome.
Logged