Bonsoir,
J’ai installé le programme Mochad (Multiple Online Controllers for Home Automation Daemon) version 0.1.16 qui est un deamon. Je suis sur Debian wheezy 3.0.4.
Doc ici ----> sourceforge.net/apps/mediawiki/m … =Main_Page
J’ai installé la librairie pour l’usb.
root@debian:~# apt-get install libusb-1.0-0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libusb-1.0-0-dev
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 186 kB of archives.
After this operation, 964 kB of additional disk space will be used.
Get:1 http://ftp.fr.debian.org/debian/ stable/main libusb-1.0-0-dev armel 2:1.0.11-1 [186 kB]
Fetched 186 kB in 0s (683 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package libusb-1.0-0-dev.
(Reading database ... 17063 files and directories currently installed.)
Unpacking libusb-1.0-0-dev (from .../libusb-1.0-0-dev_2%3a1.0.11-1_armel.deb) ...
Setting up libusb-1.0-0-dev (2:1.0.11-1) ...
root@debian:~#
Désarchivage de l’archive téléchargé
root@debian:/home/serveur/Pilotes# tar xvzf mochad-0.1.16.tar.gz
mochad-0.1.16/
mochad-0.1.16/README
mochad-0.1.16/x10_write.h
mochad-0.1.16/aclocal.m4
mochad-0.1.16/decode.h
mochad-0.1.16/mochad.c
mochad-0.1.16/ChangeLog
mochad-0.1.16/Makefile.in
mochad-0.1.16/apps/
mochad-0.1.16/apps/mochamon.pl
mochad-0.1.16/apps/simplemon.pl
mochad-0.1.16/apps/bash.sh
mochad-0.1.16/apps/rfsectopl3.pl
mochad-0.1.16/apps/mochad.scr
mochad-0.1.16/apps/x10-tk.py
mochad-0.1.16/global.c
mochad-0.1.16/Makefile.am
mochad-0.1.16/cgi/
mochad-0.1.16/cgi/netcat.pl
mochad-0.1.16/cgi/getsensors.pl
mochad-0.1.16/cgi/x10.pl
mochad-0.1.16/cgi/cgi-lib.pl
mochad-0.1.16/configure
mochad-0.1.16/hotplug2/
mochad-0.1.16/hotplug2/20-usb-x10
mochad-0.1.16/hotplug2/mochad
mochad-0.1.16/decode.c
mochad-0.1.16/udev/
mochad-0.1.16/udev/91-usb-x10-controllers.rules
mochad-0.1.16/x10state.c
mochad-0.1.16/configure.ac
mochad-0.1.16/encode.c
mochad-0.1.16/missing
mochad-0.1.16/x10_write.c
mochad-0.1.16/COPYING
mochad-0.1.16/encode.h
mochad-0.1.16/INSTALL
mochad-0.1.16/depcomp
mochad-0.1.16/install-sh
mochad-0.1.16/global.h
mochad-0.1.16/NEWS
mochad-0.1.16/x10state.h
root@debian:/home/serveur/Pilotes#
Installation du deamon Mochad
root@debian:/home/serveur/Pilotes# cd mochad-*
root@debian:/home/serveur/Pilotes/mochad-0.1.16# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for library containing libusb_init... -lusb-1.0
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for pid_t... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint8_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for alarm... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for strtol... yes
checking for strtoul... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
root@debian:/home/serveur/Pilotes/mochad-0.1.16# make
gcc -DPACKAGE_NAME=\"mochad\" -DPACKAGE_TARNAME=\"mochad\" -DPACKAGE_VERSION=\"0.1.16\" -DPACKAGE_STRING=\"mochad\ 0.1.16\" -DPACKAGE_BUGREPORT=\"mmauka@users.sourceforge.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mochad\" -DVERSION=\"0.1.16\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_ALARM=1 -DHAVE_MEMSET=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -I. -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wreturn-type -Wcast-align -g -O2 -MT mochad.o -MD -MP -MF .deps/mochad.Tpo -c -o mochad.o mochad.c
mv -f .deps/mochad.Tpo .deps/mochad.Po
gcc -DPACKAGE_NAME=\"mochad\" -DPACKAGE_TARNAME=\"mochad\" -DPACKAGE_VERSION=\"0.1.16\" -DPACKAGE_STRING=\"mochad\ 0.1.16\" -DPACKAGE_BUGREPORT=\"mmauka@users.sourceforge.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mochad\" -DVERSION=\"0.1.16\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_ALARM=1 -DHAVE_MEMSET=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -I. -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wreturn-type -Wcast-align -g -O2 -MT decode.o -MD -MP -MF .deps/decode.Tpo -c -o decode.o decode.c
mv -f .deps/decode.Tpo .deps/decode.Po
gcc -DPACKAGE_NAME=\"mochad\" -DPACKAGE_TARNAME=\"mochad\" -DPACKAGE_VERSION=\"0.1.16\" -DPACKAGE_STRING=\"mochad\ 0.1.16\" -DPACKAGE_BUGREPORT=\"mmauka@users.sourceforge.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mochad\" -DVERSION=\"0.1.16\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_ALARM=1 -DHAVE_MEMSET=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -I. -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wreturn-type -Wcast-align -g -O2 -MT encode.o -MD -MP -MF .deps/encode.Tpo -c -o encode.o encode.c
mv -f .deps/encode.Tpo .deps/encode.Po
gcc -DPACKAGE_NAME=\"mochad\" -DPACKAGE_TARNAME=\"mochad\" -DPACKAGE_VERSION=\"0.1.16\" -DPACKAGE_STRING=\"mochad\ 0.1.16\" -DPACKAGE_BUGREPORT=\"mmauka@users.sourceforge.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mochad\" -DVERSION=\"0.1.16\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_ALARM=1 -DHAVE_MEMSET=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -I. -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wreturn-type -Wcast-align -g -O2 -MT global.o -MD -MP -MF .deps/global.Tpo -c -o global.o global.c
global.c: In function '_dbprintf':
global.c:40:9: warning: variable 'buflen' set but not used [-Wunused-but-set-variable]
mv -f .deps/global.Tpo .deps/global.Po
gcc -DPACKAGE_NAME=\"mochad\" -DPACKAGE_TARNAME=\"mochad\" -DPACKAGE_VERSION=\"0.1.16\" -DPACKAGE_STRING=\"mochad\ 0.1.16\" -DPACKAGE_BUGREPORT=\"mmauka@users.sourceforge.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mochad\" -DVERSION=\"0.1.16\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_ALARM=1 -DHAVE_MEMSET=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -I. -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wreturn-type -Wcast-align -g -O2 -MT x10state.o -MD -MP -MF .deps/x10state.Tpo -c -o x10state.o x10state.c
x10state.c:113:13: warning: 'hua_dbprint' defined but not used [-Wunused-function]
mv -f .deps/x10state.Tpo .deps/x10state.Po
gcc -DPACKAGE_NAME=\"mochad\" -DPACKAGE_TARNAME=\"mochad\" -DPACKAGE_VERSION=\"0.1.16\" -DPACKAGE_STRING=\"mochad\ 0.1.16\" -DPACKAGE_BUGREPORT=\"mmauka@users.sourceforge.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mochad\" -DVERSION=\"0.1.16\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_ALARM=1 -DHAVE_MEMSET=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -I. -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wreturn-type -Wcast-align -g -O2 -MT x10_write.o -MD -MP -MF .deps/x10_write.Tpo -c -o x10_write.o x10_write.c
mv -f .deps/x10_write.Tpo .deps/x10_write.Po
gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wreturn-type -Wcast-align -g -O2 -o mochad mochad.o decode.o encode.o global.o x10state.o x10_write.o -lusb-1.0
root@debian:/home/serveur/Pilotes/mochad-0.1.16# make install
make[1]: Entering directory `/home/serveur/Pilotes/mochad-0.1.16'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c mochad '/usr/local/bin'
make install-exec-hook
make[2]: Entering directory `/home/serveur/Pilotes/mochad-0.1.16'
if test -d /etc/udev/rules.d ; then \
cp /home/serveur/Pilotes/mochad-0.1.16/udev/91-usb-x10-controllers.rules /etc/udev/rules.d ; \
fi ;
if test -d /etc/hotplug.d/usb ; then \
cp /home/serveur/Pilotes/mochad-0.1.16/hotplug2/20-usb-x10 /etc/hotplug.d/usb ; \
cp /home/serveur/Pilotes/mochad-0.1.16/hotplug2/mochad /etc/init.d ; \
fi ;
make[2]: Leaving directory `/home/serveur/Pilotes/mochad-0.1.16'
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/home/serveur/Pilotes/mochad-0.1.16'
root@debian:/home/serveur/Pilotes/mochad-0.1.16# cd ~
root@debian:~#
Mochad est maintenant installé, mais quand j’execute le deamon sur mon serveur “mochad” j’ai une message failed ?
Détails :
[code]serveur@debian:~$ mochad
serveur@debian:~$
Message from syslogd@debian at Jun 16 17:14:45 …
mochad[4184]: libusb_open_device_with_vid_pid failed
Message from syslogd@debian at Jun 16 17:14:45 …
mochad[4184]: Could not find/open CM15A/CM19A -5
serveur@debian:~$[/code]
Extrait lsusb
Le cm15A est bien reconnu via l’usb.
Comment résoudre le problème ?
Pour éventuellement y désinstaller, je ne sais pas comment procéder ?
Merci ?