You are not logged in.
when i try to install fastDFS and make, the error occurred
$ sudo ./make.sh
cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o hash.lo hash.c
hash.c: In function ‘_hash_alloc_buckets’:
hash.c:57:10: error: ‘ENOSPC’ undeclared (first use in this function); did you mean ‘ENOTSUP’?
return ENOSPC;
^~~~~~
ENOTSUP
hash.c:57:10: note: each undeclared identifier is reported only once for each function it appears in
hash.c:63:10: error: ‘ENOMEM’ undeclared (first use in this function); did you mean ‘ENOSPC’?
return ENOMEM;
^~~~~~
ENOSPC
hash.c: In function ‘hash_init_ex’:
hash.c:93:10: error: ‘EINVAL’ undeclared (first use in this function)
return EINVAL;
^~~~~~
hash.c: In function ‘hash_stat’:
hash.c:209:11: error: ‘ENOSPC’ undeclared (first use in this function); did you mean ‘ENOTSUP’?
return ENOSPC;
^~~~~~
ENOTSUP
hash.c: In function ‘hash_best_op’:
hash.c:422:11: error: ‘ENOMEM’ undeclared (first use in this function)
return -ENOMEM;
^~~~~~
hash.c: In function ‘hash_insert_ex’:
hash.c:580:11: error: ‘ENOSPC’ undeclared (first use in this function); did you mean ‘ENOTSUP’?
return -ENOSPC;
^~~~~~
ENOTSUP
hash.c:586:11: error: ‘ENOMEM’ undeclared (first use in this function); did you mean ‘ENOSPC’?
return -ENOMEM;
^~~~~~
ENOSPC
hash.c: In function ‘hash_delete’:
hash.c:647:9: error: ‘ENOENT’ undeclared (first use in this function)
return ENOENT;
^~~~~~
hash.c:648:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [Makefile:30: hash.lo] Error 1
Offline
Installing software outside of pacman is almost always a bad idea.
Where does the sourcecode come from and what instructions are you trying to follow to build it ?
Last edited by Lone_Wolf (2018-03-27 12:04:22)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
I want to install fastDFS for learning, I download it from below link:
https://github.com/happyfish100/fastdfs
This software does not seem to be installed from the pacman.
I couldn't find it in Arch WiKi.
Is there have any software to replace it?
Offline
It might be possible to get fastDFS wokrin gon arch, but it won't be easy.
A quick peek in fastdfs code suggests it's targeted towards rpm-based distributions that use sysv-init and etc/init.d/ .
There are distributed filesystems that work on archlinux, but it would be easier to advise you when you tell us what you want to achieve.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
I want a distributed file systems to upload web static files.
I am learning web development on Python and i use nginx to download the files.
Are there any DFS could be called in Python?
Offline
GlusterFS and Apache Hadoop come to mind.
To get into the basics of DFS https://superuser.blog/distributed-file-system-python/ looks useful.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
GlusterFS and Apache Hadoop come to mind.
To get into the basics of DFS https://superuser.blog/distributed-file-system-python/ looks useful.
Thanks a lot, I will try it:)
Offline
I fail to find the hash.c sources it seems to compile in the git tree (but only checked the webinterface), but it needs to include errno.h
#include <errno.h>
#include <stdio.h>
int main(int argc, char **argv) {
printf("%d\n", ENOSPC);
}
This shoud compile using eg. "gcc -o test test.c"
Offline