Witam ponownie!
Do tej pory Wasza pomoc była nieoceniona i bardzo fachowa, za co bardzo dziękuję. To cieszy, że istnieje tak wspaniała społeczność RoR. Teraz zwracam się do Was z problemem z wyższej półki, z którym ja niestetynie mogę sobie poradzić… Google również mi nie pomógł i znów jestem skazany na Waszą wiedzę i doświadczenie. Mam nadzieję, że znajdzie się osoba, która będzie w stanie mi pomóc.
Mam problem z zainstalowaniem na Mac OS X gem-a o nazwie SysVIPC. Pod Ubuntu na tej samej wersji Ruby wszystko jest OK, nie ma żadnych problemów. Używam Ruby w wersji: 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10.3.0]. Z tym, że na Mac-u Ruby zainstalowałem poprzez RVM (Ruby Version Manager).
Wykonuję:
gem install SysVIPC
i otrzymuję komunikat takiej treści:
[code]Building native extensions. This could take a while…
ERROR: Error installing SysVIPC:
ERROR: Failed to build gem native extension.
/Users/bbmmog/.rvm/rubies/ruby-1.9.1-p243/bin/ruby extconf.rb
checking for sys/types.h… yes
checking for sys/ipc.h… yes
checking for sys/msg.h… yes
checking for msgget()… yes
checking for sys/sem.h… yes
checking for semget()… yes
checking for sys/shm.h… yes
checking for shmget()… yes
creating Makefile
make
gcc -I. -I/Users/bbmmog/.rvm/rubies/ruby-1.9.1-p243/include/ruby-1.9.1/i386-darwin10.3.0 -I/Users/bbmmog/.rvm/rubies/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/backward -I/Users/bbmmog/.rvm/rubies/ruby-1.9.1-p243/include/ruby-1.9.1 -I. -DHAVE_SYS_TYPES_H -DHAVE_SYS_IPC_H -DHAVE_SYS_MSG_H -DHAVE_MSGGET -DHAVE_SYS_SEM_H -DHAVE_SEMGET -DHAVE_SYS_SHM_H -DHAVE_SHMGET -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-parentheses -pipe -fno-common -o SysVIPC.o -c SysVIPC.c
SysVIPC.c:1850: error: redefinition of ‘union semun’
In file included from SysVIPC.c:1865:
/Users/bbmmog/.rvm/rubies/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/backward/rubyio.h:2:2: warning: #warning use “ruby/io.h” instead of “rubyio.h”
SysVIPC.c: In function ‘_wrap_ipc_perm_uid_set’:
SysVIPC.c:2371: warning: format not a string literal and no format arguments
SysVIPC.c:2376: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_ipc_perm_uid_get’:
SysVIPC.c:2399: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_ipc_perm_gid_set’:
SysVIPC.c:2424: warning: format not a string literal and no format arguments
SysVIPC.c:2429: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_ipc_perm_gid_get’:
SysVIPC.c:2452: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_ipc_perm_cuid_set’:
SysVIPC.c:2477: warning: format not a string literal and no format arguments
SysVIPC.c:2482: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_ipc_perm_cuid_get’:
SysVIPC.c:2505: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_ipc_perm_cgid_set’:
SysVIPC.c:2530: warning: format not a string literal and no format arguments
SysVIPC.c:2535: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_ipc_perm_cgid_get’:
SysVIPC.c:2558: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_ipc_perm_mode_set’:
SysVIPC.c:2583: warning: format not a string literal and no format arguments
SysVIPC.c:2588: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_ipc_perm_mode_get’:
SysVIPC.c:2611: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_ftok’:
SysVIPC.c:2676: warning: format not a string literal and no format arguments
SysVIPC.c:2681: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_perm_set’:
SysVIPC.c:2710: warning: format not a string literal and no format arguments
SysVIPC.c:2715: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_perm_get’:
SysVIPC.c:2738: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_qnum_set’:
SysVIPC.c:2763: warning: format not a string literal and no format arguments
SysVIPC.c:2768: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_qnum_get’:
SysVIPC.c:2791: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_qbytes_set’:
SysVIPC.c:2816: warning: format not a string literal and no format arguments
SysVIPC.c:2821: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_qbytes_get’:
SysVIPC.c:2844: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_lspid_set’:
SysVIPC.c:2869: warning: format not a string literal and no format arguments
SysVIPC.c:2874: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_lspid_get’:
SysVIPC.c:2897: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_lrpid_set’:
SysVIPC.c:2922: warning: format not a string literal and no format arguments
SysVIPC.c:2927: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_lrpid_get’:
SysVIPC.c:2950: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_stime_set’:
SysVIPC.c:2973: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_stime_get’:
SysVIPC.c:3002: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_rtime_set’:
SysVIPC.c:3027: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_rtime_get’:
SysVIPC.c:3056: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_ctime_set’:
SysVIPC.c:3081: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msqid_ds_msg_ctime_get’:
SysVIPC.c:3110: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msgctl’:
SysVIPC.c:3182: warning: format not a string literal and no format arguments
SysVIPC.c:3187: warning: format not a string literal and no format arguments
SysVIPC.c:3193: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msgget’:
SysVIPC.c:3221: warning: format not a string literal and no format arguments
SysVIPC.c:3226: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msgrcv’:
SysVIPC.c:3259: warning: format not a string literal and no format arguments
SysVIPC.c:3264: warning: format not a string literal and no format arguments
SysVIPC.c:3269: warning: format not a string literal and no format arguments
SysVIPC.c:3274: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_msgsnd’:
SysVIPC.c:3305: warning: format not a string literal and no format arguments
SysVIPC.c:3310: warning: format not a string literal and no format arguments
SysVIPC.c:3316: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_semid_ds_sem_perm_set’:
SysVIPC.c:3343: warning: format not a string literal and no format arguments
SysVIPC.c:3348: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_semid_ds_sem_perm_get’:
SysVIPC.c:3371: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_semid_ds_sem_nsems_set’:
SysVIPC.c:3396: warning: format not a string literal and no format arguments
SysVIPC.c:3401: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_semid_ds_sem_nsems_get’:
SysVIPC.c:3424: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_semid_ds_sem_otime_set’:
SysVIPC.c:3447: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_semid_ds_sem_otime_get’:
SysVIPC.c:3476: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_semid_ds_sem_ctime_set’:
SysVIPC.c:3501: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_semid_ds_sem_ctime_get’:
SysVIPC.c:3530: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_sembuf_sem_num_set’:
SysVIPC.c:3596: warning: format not a string literal and no format arguments
SysVIPC.c:3601: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_sembuf_sem_num_get’:
SysVIPC.c:3624: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_sembuf_sem_op_set’:
SysVIPC.c:3649: warning: format not a string literal and no format arguments
SysVIPC.c:3654: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_sembuf_sem_op_get’:
SysVIPC.c:3677: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_sembuf_sem_flg_set’:
SysVIPC.c:3702: warning: format not a string literal and no format arguments
SysVIPC.c:3707: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_sembuf_sem_flg_get’:
SysVIPC.c:3730: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_semctl’:
SysVIPC.c:3801: warning: format not a string literal and no format arguments
SysVIPC.c:3806: warning: format not a string literal and no format arguments
SysVIPC.c:3811: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_semget’:
SysVIPC.c:3844: warning: format not a string literal and no format arguments
SysVIPC.c:3849: warning: format not a string literal and no format arguments
SysVIPC.c:3854: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_semop’:
SysVIPC.c:3882: warning: format not a string literal and no format arguments
SysVIPC.c:3899: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_perm_set’:
SysVIPC.c:3926: warning: format not a string literal and no format arguments
SysVIPC.c:3931: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_perm_get’:
SysVIPC.c:3954: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_segsz_set’:
SysVIPC.c:3979: warning: format not a string literal and no format arguments
SysVIPC.c:3984: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_segsz_get’:
SysVIPC.c:4007: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_lpid_set’:
SysVIPC.c:4032: warning: format not a string literal and no format arguments
SysVIPC.c:4037: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_lpid_get’:
SysVIPC.c:4060: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_cpid_set’:
SysVIPC.c:4085: warning: format not a string literal and no format arguments
SysVIPC.c:4090: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_cpid_get’:
SysVIPC.c:4113: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_nattch_set’:
SysVIPC.c:4138: warning: format not a string literal and no format arguments
SysVIPC.c:4143: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_nattch_get’:
SysVIPC.c:4166: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_atime_set’:
SysVIPC.c:4189: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_atime_get’:
SysVIPC.c:4218: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_dtime_set’:
SysVIPC.c:4243: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_dtime_get’:
SysVIPC.c:4272: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_ctime_set’:
SysVIPC.c:4297: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmid_ds_shm_ctime_get’:
SysVIPC.c:4326: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmat’:
SysVIPC.c:4434: warning: format not a string literal and no format arguments
SysVIPC.c:4439: warning: format not a string literal and no format arguments
SysVIPC.c:4444: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmctl’:
SysVIPC.c:4477: warning: format not a string literal and no format arguments
SysVIPC.c:4482: warning: format not a string literal and no format arguments
SysVIPC.c:4488: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmdt’:
SysVIPC.c:4513: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmget’:
SysVIPC.c:4543: warning: format not a string literal and no format arguments
SysVIPC.c:4548: warning: format not a string literal and no format arguments
SysVIPC.c:4553: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmread’:
SysVIPC.c:4583: warning: format not a string literal and no format arguments
SysVIPC.c:4588: warning: format not a string literal and no format arguments
SysVIPC.c:4593: warning: format not a string literal and no format arguments
SysVIPC.c: In function ‘_wrap_shmwrite’:
SysVIPC.c:4624: warning: format not a string literal and no format arguments
SysVIPC.c:4633: warning: format not a string literal and no format arguments
make: *** [SysVIPC.o] Error 1
Gem files will remain installed in /Users/bbmmog/.rvm/gems/ruby-1.9.1-p243/gems/SysVIPC-0.9 for inspection.
Results logged to /Users/bbmmog/.rvm/gems/ruby-1.9.1-p243/gems/SysVIPC-0.9/ext/gem_make.out[/code]
Z góry dziękuję za wszelką pomoc!