Install library under HOME shared via Network File System

This is a discussion on Install library under HOME shared via Network File System within the Linux Programming forums, part of the Platform Specific Boards category; Hi, My Home directory is shared among several linux computers via Network File System. I would like to install some ...

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    159

    Install library under HOME shared via Network File System

    Hi,

    My Home directory is shared among several linux computers via Network File System.
    I would like to install some C C++ library from source under my Home directory, and wish they can be used under all the linux computers.

    Do I have to install different versions of the library under different directories of my Home for different computer?

    Assuming I have a C C++ program that calls these libraries, how do I specify different include and link files and directories for different computer in Makefile? Is it to determine the directories based on the hostname of the computer?

    Is it possible to combine the different versions of the .a and .so files and header files of the libary for different linux computers so that the include and link files and directories of the libary are the same for all the computers and I don't have to specify different directories for different computer in the Makefile of my C C++ program?

    Thanks and regards!

  2. #2
    khn
    khn is offline
    Registered User
    Join Date
    Aug 2009
    Posts
    2
    You can specify the path to you libs by setting LD_LIBRARY_PATH. If you may use the same library on different machines as long as it the same architecture and all dependencies are met. The command 'ldd <file>' should give you some helpful information.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Buidl Library with ./configure script
    By Jardon in forum C Programming
    Replies: 6
    Last Post: 07-24-2009, 10:36 AM
  2. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 05:27 PM
  3. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 01:36 PM
  4. #include header files or .cpp files?
    By DoctorX in forum C++ Programming
    Replies: 3
    Last Post: 12-23-2006, 12:21 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21