Jump to content


Yo! You're not logged in. Why am I seeing this ad?

Photo

Need some help installing software on AIX


  • Please log in to reply
2 replies to this topic

#1 kneemoe

  • 1,832 posts

Posted 29 June 2012 - 07:59 AM

This is probably something simple, but I can't seem to find the answer. I've been asked to try to get the AMP stack running on AIX, and I think I'm awfully close but I ran into a small roadblock late yesterday....
I'm trying to install libiconv to AIX 7.1 from an rpm off of the perzl.org site. The rpm appears to install but I get this error message.


add shr4.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a
add shr.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a
add shr4_64.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a

How could I go about adding these shared members to the /opt/freeware/lib/libiconv.a? Should I just make a symbolic link using -sf?
I can't seem to find a write-up on this anywhere, and I've got a bad feeling if I just do what I think I'll encounter some build errors when I go to compile drupal later down the road.


Edit:
I've gone ahead and done - if anyone has any insight that this is incorrect please let me know!
ln -sf /usr/lib/libiconv.a /opt/freeware/lib/libiconv.a

Edited by kneemoe, 29 June 2012 - 09:16 AM.


#2 cgori

  • 1,372 posts

Posted 29 June 2012 - 11:19 AM

That's probably ok if there wasn't already an /opt/freeware/lib/libiconv.a sitting there.

That error message suggests that whoever configured the rpm used some "interesting" settings for things. I would think that adding /opt/freeware/lib to your LD_LIBRARY_PATH -- well, whatever the AIX equivalent of that is, I've long since forgotten :( -- might help it out too. Though, the message seems to be in the opposite direction, and /usr/lib is almost certainly in the default .so search path.

If you actually had to combine archives for some reason, then you have to use ar and ranlib to merge them. You'd have to google/man page that shit because every vendor ar seems to work differently in my experience. I don't think you have to do this, since it sounds like a simple pathing problem that you probably solved with the symlinks.

#3 kneemoe

  • 1,832 posts

Posted 02 July 2012 - 08:28 AM

That link did seem to work without error... I ended up having to uprgade libiconv shortly afterward though to resolve another dependancy.

I think the reason behind the "interesting" setting for the rpm is that AIX already has its own libiconv library installed in /usr/lib. Of course that wasn't/isn't enough for what I'm playing around with, but there is some reason behind the madness.

I keep thinking I'm getting close, only to get hit with a build error due to missing dependancies. Makes the going pretty slow.... I told em we should just build this server on Redhat but apparently that's going to take months just to purchase (the wheels of the State sure do turn slowly)

Thanks for the input - much appreciated!


EDIT/UPDATE: I got the AMP stack running, next step is to see if I can get it to play nice with drupal7.

ONE MORE: drupal doesn't play nice because the PHP build I have doesn't use PDOs, getting it to compile doesn't work because of the library issue above (and probably other issues as well) too bad AIX doesn't play n ice with libtool....

Edited by kneemoe, 09 July 2012 - 03:29 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users