[Click] migrating package binaries

Paine, Thomas Asa PAINETA at uwec.edu
Fri Aug 1 10:16:45 EDT 2008


Bayani,
        Assuming your low powered box is running the same kernel and has other needed libraries, this should work fine.  I also build packages that get pushed to an appliance, for the same reason.  When configuring and building click, I use the --prefix configure option.  This way, when I build and install click, it puts all the "click" files in one folder and doesn't pollute my build system.  If you are building your own packages (for your elements), you would then need to ensure you are copying the needed .ko and .uo files (kernel, user).  If you use the same configure options on your package as you do with click (assuming the --prefix), this should already be happening.  Also, you may need to define the CLICKPATH for your libraries as well on your deployment box, so something like 'export CLICKPATH=/lib'.  If you think you are missing a library, simply run ldd on the click binary, or any binary, to see if you have any broken dependencies.

e.g.
# ldd click
        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb7fd0000)
        libstdc++.so.6 => /usr/local/lib/libstdc++.so.6 (0xb7ee6000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7ec3000)
        libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0xb7eb8000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7d9c000)
        /lib/ld-linux.so.2 (0xb7fe0000)


        Hope this helps.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
   Thomas Paine (paineta at uwec.edu)
   University of Wisconsin - Eau Claire
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-----Original Message-----
From: click-bounces at pdos.csail.mit.edu [mailto:click-bounces at pdos.csail.mit.edu] On Behalf Of Bayani Carbone
Sent: Friday, August 01, 2008 6:21 AM
To: click at pdos.csail.mit.edu
Subject: [Click] migrating package binaries

Hello, I'm using click on a low cpu powered box and would like to avoid
compiling my element package on that box by compiling on my PC then
moving the binaries to the box. I tried to move the obvious binary files
created in my package folder and the binary I found in the lib folder of
click to the box but my package wasn't recognized when I tried to run a
click script on the box.
Is it possible to do what I'm trying to do, are there any other steps I
need to take in order to make this work?

Thank you,

Bayani Carbone
_______________________________________________
click mailing list
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list