[strongSwan] Building strongSwan on one machine, to be installed on another - paths

Noel Kuntze noel at familie-kuntze.de
Sun Feb 15 02:30:06 CET 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello Ryan,

Don't use the prefix to make the install script copy the files into a special directory.
he prefix is a statical path that will be a part of the source code when it gets compiled.
To install into a different directory, use the DESTDIR directive when you execute make install.
e.g.: make DESTDIR=/home/foo/install install

Decide in which directory you will install the program on that other box
before you compile it and adjust the prefix accordingly.

Mit freundlichen Grüßen/Regards,
Noel Kuntze

GPG Key ID: 0x63EC6658
Fingerprint: 23CA BB60 2146 05E7 7278 6592 3839 298F 63EC 6658

Am 15.02.2015 um 02:02 schrieb Ryan Ruel:
> I am trying to build strongSwan on one machine, which will ultimately be installed on another machine, but in a different path.
>
> On the machine where I need to build strongSwan, I was hoping to use:
>
> ./configure —prefix=/home/foo/install
> make
> make install
>
> Which of course, puts everything into /home/foo/install, which makes it nice to tar it up for exporting to another machine.
>
> The machine where I’m planning on running strongSwan requires that I put the binaries into a non-standard, but when I try to do this, the libraries and such are all in the wrong places.
>
> Which would be the best solution to this problem?
>
> - Should I use the “enable-monolithic” option and statically link everything in?  Would that help, or hurt?  I see that the .so’s are still built.
> - Is there a way to specify the final paths for everything when I compile, except for the install prefix, so that “make install” still puts everything in the right place, but the compiled in paths match the final machine paths?
>
> Any suggestions would be very helpful.
>
> Thanks!
>
> /Ryan
> _______________________________________________
> Users mailing list
> Users at lists.strongswan.org
> https://lists.strongswan.org/mailman/listinfo/users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJU3/aaAAoJEDg5KY9j7GZYAiQP/i9PjTaQa0CFMLbArhvt70if
b95xymjaqPAbyvQRvRWBB8Nf0pb4tBBO0rmtt5ld3wpnt6N7Q7JPJt9YXRzNMLCv
GYMGLWh/sFubtUEptLDdJZPJ0D4gKRoJvbfNW8BnHlyoGUU+gzE8J9bi03aAHRxn
UXW6nmyYMACTFiG1Yb+I2zKpl/oPKD9vZHKRPl8vhReoRHGwp0qQEbXv5vGaJ2VW
QI/u+zxxqEGuDM2c/oZxKYabUBLqQliIomfdJ4zvspEmdBhpXX/atcVQVDPBU+v8
M3/NP7+9B7f4AXw3qfa8bAGwE8gNimVYBEmw+mcviwWKkVPKwkxq1fpGbIpI3sXp
X464viGPfHaoTvtFK2HHfqkN4fJwsbpTo1fYS8s9X9GbLS4nWjUYPAJnZrl0cJ4x
K1FnZJlMDYmkt/FoGc2MqrR8mMo1egOhu+rBE/zhILus/9VHcrFDLLDHaygl6arJ
7l4PB+wluIW8RxOZ6BAArfOaJsSPM1rt1wV6l8aNNOJMuzVKUD512quUqM9IXVDK
B/AhoL5aLo55Hhv5Cy6/SHf9tiQ7bNneBZvmxvDGtsIbSjD3nkzk9XpnONCvjjI2
psRLzzYBtmNZg3+9lj2KRw6EPk3vXdwCfDVFWF6FYxyTTrP+/1RQqIF7PhAjl0aF
7VySlmevLrJU4u0WFxny
=tnn+
-----END PGP SIGNATURE-----



More information about the Users mailing list