-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to compile riofs statically? #117
Comments
Hello, yes it's possible to statically compile RioFS. |
I'm running Centos 7 64-bit. Any thoughts on what I might do to resolve On Tue, Jun 28, 2016 at 9:57 AM, Paul Jonkins [email protected]
Best, Davewww.ThibaultFineArt.com |
Could you please upload |
Here's the config.log Also, while I have your attention, would it be an acceptable use case to map multiple web servers to the same bucket using RioFS for their WP uploads folders? If one server changes the bucket (adds or deletes a file), will another server see the changes, or will the caching mechanism cause problems? Are there any non-default configuration options I need to be using for this use case? Best, |
Ok, the problem is that you don't have "C" compiler installed, please check the "Dependencies" section of Readme file. |
I think I do have it installed, and it compiles fine if I don't try to do Here's everything I can think to look for given your list of dependencies. C Compiler: gcc.x86_64 4.8.5-4.el7 gcc-c++.x86_64 4.8.5-4.el7 gcc-gfortran.x86_64 4.8.5-4.el7 libgcc.x86_64 4.8.5-4.el7 Glib >= 2.22: [root@dev ~]# yum list installed | grep glib dbus-glib.x86_64 0.100-7.el7 glib-networking.x86_64 2.42.0-1.el7 glib2.x86_64 2.42.2-5.el7 glib2-devel.x86_64 2.42.2-5.el7 glibc.x86_64 2.17-106.el7_2.6 glibc-common.x86_64 2.17-106.el7_2.6 glibc-devel.x86_64 2.17-106.el7_2.6 glibc-headers.x86_64 2.17-106.el7_2.6 fuse >= 2.7.3 [root@dev ~]# yum list installed | grep fuse fuse.x86_64 2.9.2-6.el7 fuse-devel.x86_64 2.9.2-6.el7 fuse-libs.x86_64 2.9.2-6.el7 libevent >= 2.0 [root@dev ~]# yum list installed | grep libevent libevent.x86_64 2.0.21-4.el7 libevent-devel.x86_64 2.0.21-4.el7 libxml >= 2.6 [root@dev ~]# yum list installed | grep libxml libxml2.x86_64 2.9.1-6.el7_2.3 libxml2-devel.x86_64 2.9.1-6.el7_2.3 libcrypto >= 0.9 [root@dev ~]# yum list installed | grep openssl openssl.x86_64 1:1.0.1e-51.el7_2.5 openssl-devel.x86_64 1:1.0.1e-51.el7_2.5 openssl-libs.x86_64 1:1.0.1e-51.el7_2.5 libmagic (I had to guess on this one, I think I found it and it looks [root@dev ~]# locate libmagic /usr/lib64/libmagic.so.1 /usr/lib64/libmagic.so.1.0.0 /usr/share/doc/php56w-common-5.6.22/libmagic_LICENSE [root@dev ~]# yum provides libmagic.so.1 file-libs-5.11-31.el7.i686 : Libraries for applications using libmagic Repo : base Matched from: Provides : libmagic.so.1 [root@dev ~]# yum list installed | grep file-libs file-libs.x86_64 5.11-31.el7 Is there something other than that? Was there a line in particular in the Best, On Tue, Jun 28, 2016 at 12:47 PM, Paul Jonkins [email protected]
Best, Davewww.ThibaultFineArt.com |
I followed these installation instructions: They looked like yours here: But yours appear to cut off, whereas these kept going. I believe yum groupinstall "Development Tools" should have done the trick, Best, On Tue, Jun 28, 2016 at 1:19 PM, David Thibault [email protected]
Best, Davewww.ThibaultFineArt.com |
could you please create a small C file (called test.c):
and try to compile it: |
I got this error: /bin/ld: cannot find -lc collect2: error: ld returned 1 exit status I googled bin ld cannot find lc, and found an article mentioning that I Along those same lines, I also found and installed openssl-static and [root@dev riofs-master]# yum list installed | grep static glibc-static.x86_64 2.17-106.el7_2.6 libxml2-static.x86_64 2.9.1-6.el7_2.3 openssl-static.x86_64 1:1.0.1e-51.el7_2.5 Now when I do ./configure LDFLAGS="-static" I get: configure: error: could not find OpenSSL Here's the new config.log: https://gist.github.com/davetbo/91b6a66d0ddb80c9b8fcc3874e4f0225 Thanks for all your help! Best, Dave On Tue, Jun 28, 2016 at 1:33 PM, Paul Jonkins [email protected]
Best, Davewww.ThibaultFineArt.com |
OK, until we can figure out the static compiles I'm using it the Anyway, I'm getting a really weird problem. When I go to the output https://drive.google.com/file/d/0B5sV9QxXFdWsTWViNDlUWkkxdmM/view?usp=sharing The black & red ones are showing up as non-existent (but still showing Best, On Tue, Jun 28, 2016 at 1:57 PM, David Thibault [email protected]
Best, Davewww.ThibaultFineArt.com |
Regarding the static build issues: unfortunately I don't have an access to an installed CentOS computer to test it, but it seems that "-lssl" is missing. Could you try to prepend Regarding "no such file or directory" issue: have you modified the default riofs.conf.xml file? Could you tell me how many files are there in the directory? Possible issue is that you trying to get the list of files before the directory is fully filled with the files. |
Paul, Sorry to let this drop a few days. I tried this command: ./configure LDFLAGS="-static" LDLIBS="-lssl" and it resulted in the same result. I also tried ./configure LDFLAGS="-static -L/usr/lib64" --libdir=/usr/lib64 https://gist.github.com/davetbo/a85adcec6e5b0e0a5f2566583452345a Best, On Wed, Jun 29, 2016 at 7:26 AM, Paul Jonkins [email protected]
Best, Davewww.ThibaultFineArt.com |
I've got RioFS working on my development box, but I'd rather not install all the development tools on production boxes. Is it possible to compile RioFS static and then just install the binaries and configuration files on my production servers? Please advise. I checked the ./configure --help options and I didn't see anything obvious. Also, I tried ./configure LDFLAGS="-static" and I get:
[root@dev riofs-master]# ./configure LDFLAGS="-static"
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in
/root/riofs-master': configure: error: C compiler cannot create executables See
config.log' for more detailsI appreciate your advice and your great code!
The text was updated successfully, but these errors were encountered: