i try to install glance using command
(os)mirror0#lab:~/tmp/glance$ python setup.py install
but failed, why?
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NOENT’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NOCDATA’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘XML_PARSE_RECOVER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘HTML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182031: error: ‘XML_XPATH_NUMBER_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182041: error: ‘XML_XPATH_UNFINISHED_LITERAL_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182051: error: ‘XML_XPATH_VARIABLE_REF_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182061: error: ‘XML_XPATH_INVALID_PREDICATE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182071: error: ‘XML_XPATH_UNCLOSED_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182081: error: ‘XML_XPATH_INVALID_CHAR_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182116: error: ‘XML_XPATH_UNDEF_VARIABLE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182126: error: ‘XML_XPATH_UNDEF_PREFIX_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182136: error: ‘XML_XPATH_UNKNOWN_FUNC_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182146: error: ‘XML_XPATH_INVALID_OPERAND’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182156: error: ‘XML_XPATH_INVALID_TYPE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182166: error: ‘XML_XPATH_INVALID_ARITY’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182176: error: ‘XML_XPATH_INVALID_CTXT_SIZE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182186: error: ‘XML_XPATH_INVALID_CTXT_POSITION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182532: error: ‘LIBXSLT_VERSION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182544: error: ‘xsltLibxsltVersion’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘__pyx_v_4lxml_5etree_XSLT_DOC_DEFAULT_LOADER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘xsltDocDefaultLoader’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: warning: implicit declaration of function ‘xsltSetLoaderFunc’
src/lxml/lxml.etree.c:182565: error: ‘xsltDocLoaderFunc’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: error: expected ‘)’ before ‘__pyx_f_4lxml_5etree__xslt_doc_loader’
src/lxml/lxml.etree.c:182816: warning: implicit declaration of function ‘xsltRegisterAllExtras’
src/lxml/lxml.etree.c:182825: warning: implicit declaration of function ‘exsltRegisterAll’
error: Setup script exited with error: command 'gcc' failed with exit status 1
(os)mirror0#lab:~/tmp/glance$ echo $?
1
(os)mirror0#lab:~/tmp/glance$ python -V
Python 2.6.6
Edit 1: i have installed libxml2-dev, still failed to install glance, why?
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘XML_PARSE_RECOVER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘HTML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182031: error: ‘XML_XPATH_NUMBER_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182041: error: ‘XML_XPATH_UNFINISHED_LITERAL_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182051: error: ‘XML_XPATH_VARIABLE_REF_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182061: error: ‘XML_XPATH_INVALID_PREDICATE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182071: error: ‘XML_XPATH_UNCLOSED_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182081: error: ‘XML_XPATH_INVALID_CHAR_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182116: error: ‘XML_XPATH_UNDEF_VARIABLE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182126: error: ‘XML_XPATH_UNDEF_PREFIX_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182136: error: ‘XML_XPATH_UNKNOWN_FUNC_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182146: error: ‘XML_XPATH_INVALID_OPERAND’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182156: error: ‘XML_XPATH_INVALID_TYPE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182166: error: ‘XML_XPATH_INVALID_ARITY’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182176: error: ‘XML_XPATH_INVALID_CTXT_SIZE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182186: error: ‘XML_XPATH_INVALID_CTXT_POSITION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182532: error: ‘LIBXSLT_VERSION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182544: error: ‘xsltLibxsltVersion’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘__pyx_v_4lxml_5etree_XSLT_DOC_DEFAULT_LOADER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘xsltDocDefaultLoader’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: warning: implicit declaration of function ‘xsltSetLoaderFunc’
src/lxml/lxml.etree.c:182565: error: ‘xsltDocLoaderFunc’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: error: expected ‘)’ before ‘__pyx_f_4lxml_5etree__xslt_doc_loader’
src/lxml/lxml.etree.c:182816: warning: implicit declaration of function ‘xsltRegisterAllExtras’
src/lxml/lxml.etree.c:182825: warning: implicit declaration of function ‘exsltRegisterAll’
error: Setup script exited with error: command 'gcc' failed with exit status 1
(os)mirror0#lab:~/tmp/glance$ dpkg -l | grep libxml2
ii libxml2 2.7.8.dfsg-2+squeeze5 GNOME XML library
ii libxml2-dev 2.7.8.dfsg-2+squeeze5 Development files for the GNOME XML library
ii libxml2-utils 2.7.8.dfsg-2+squeeze5 XML utilities
ii python-libxml2 2.7.8.dfsg-2+squeeze5 Python bindings for the GNOME XML library
ii python-lxml 2.2.8-2 pythonic binding for the libxml2 and libxslt libraries
Try to install Libxslt. For Ubuntu:
sudo apt-get install libxslt1.1 libxslt1-dev python-libxslt1
Related
Can some one let me know how to use both sybase functions and oracle functions in same perl script using a perl interpreter supporting both syb and ora modules?
I have 2 perl interpreter running in same machine currently.
Sybase package is build on below version of perl. I could see that version in the README file of sybase modues
bash-4.1$ /usr/bin/perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread.
I am able to use this interpreter in script and compile successfully when I use sybase supported functions to fetch from db*
1st interpreter
test1.pl
#!/usr/bin/perl
2nd perl interpretor came with oracle sdk package.
its supporting only oracle fucntions to interact with Db
bash-4.1$ /home/oracle/12.2.0/client_1/perl/bin/perl -v
This is perl 5, version 22, subversion 0 (v5.22.0) built for x86_64-linux-thread-multi->this is supporting only oracle*
test2.pl
#!/home/oracle/12.2.0/client_1/perl/bin/perl
I tried to include oracle modules from this path /home/oracle/12.2.0/client_1/perl/bin/perl while running a script using perl bin from /usr/bin/perl path and #INC file i pointed to /home/oracle/12.2.0/client_1/perl/DBD/Oracle.pm it will throw error.
So I found oracle build on 1 perl version can't be included with other version of perl
test3.pl
#!/home/oracle/12.2.0/client_1/perl/bin/perl
---sydth/(EXEC.....)
Can I have 1 perl interpretor version supporting both Sybase and Oracle functions?
I am not talking about the DBI module to connect to to oracle and sybase.
I meant functions used using database handlers to support oracle and sybase after connection.
I managed to follow the below steps
Downloaded DBD-Oracle-1.73_01.tar.gz and tried to install got erros. So downloaded and installed the below dependencies first
2.downloanded dependencies ExtUtils-MakeMaker-7.4 and ExtUtils-ParseXS-35.tar.gz
downloaded a oracle sdk package 12.2.0 . it has perl.jdk,plsql,sqlplus.. etc
oracle/12.2.0/client_1/perl
set ORACLE_HOME =/oracle/12.2.0/client_1 and LD_LIBARRY_PATH=oracle/12.2.0/client_1/perl
cd DBD-Oracle-1.73_01/
--execute using perl v5.10 (perl Makefile.PL)
make && make install -> this step is throwing lot of errors
I am assuming oracle driver module and along with oracle sdk clients , can there be any kind of version mismatch here ?
Glance of errors
racle.c:2379: error: âcvâ undeclared (first use in this function)
Oracle.c:2380: error: âitemsâ undeclared (first use in this function)
Oracle.c:2382: error: âXS_VERSION_BOOTCHECKâ undeclared (first use in this function)
Oracle.c:2388: warning: implicit declaration of function âPerl_newXSâ
Oracle.c:2388: error: âXS_DBD__Oracle_constantâ undeclared (first use in this function)
Oracle.c:2389: error: âXSANYâ undeclared (first use in this function)
Oracle.c:2518: error: âXS_DBD__Oracle_ORA_OCIâ undeclared (first use in this function)
Oracle.c:2519: error: âXS_DBD__Oracle_ora_env_varâ undeclared (first use in this function)
Oracle.c:2523: error: âXS_DBD__Oracle__dr_dbixs_revisionâ undeclared (first use in this function)
Oracle.c:2533: error: âXS_DBD__Oracle__db__loginâ undeclared (first use in this function)
Oracle.c:2534: error: âXS_DBD__Oracle__db_selectall_arrayrefâ undeclared (first use in this function)
Oracle.c:2535: error: âXS_DBD__Oracle__db_selectrow_arrayrefâ undeclared (first use in this function)
Oracle.c:2545: error: âXS_DBD__Oracle__db_commitâ undeclared (first use in this function)
Oracle.c:2546: error: âXS_DBD__Oracle__db_rollbackâ undeclared (first use in t heis function)
./Oracle.xsi:19: warning: implicit declaration of function âSvIVXâ
./Oracle.xsi:19: warning: implicit declaration of function âperl_get_svâ
./Oracle.xsi:19: error: lvalue required as unary â&â operand
./Oracle.xsi:19: warning: cast to pointer from integer of different size
./Oracle.xsi:19: error: âdbistate_tâ has no member named âcheck_versionâ
./Oracle.xsi:21: warning: implicit declaration of function âsv_setivâ
./Oracle.xsi:21: error: âGV_ADDMULTIâ undeclared (first use in this function)
./Oracle.xsi:24: warning: implicit declaration of function âora_initâ
Oracle.c:2649: error: âXSRETURN_YESâ undeclared (first use in this function)
Oracle.c:2367: warning: unused variable âPerl___notusedâ
make: *** [Oracle.o] Error 1
The standard way to talk to Sybase databases is using Perl's DBI (database interface) module and DBD::Sybase (which is the database driver for Sybase). Similarly, for an Oracle database, you'd use DBI together with DBD::Oracle.
It is perfectly possible to have both of these modules installed in the same Perl installation. It probably makes most sense to add DBD::Oracle to the version of Perl in /usr/bin/perl. You can do that by running
$ sudo cpan DBD::Oracle
on your command line. Note that you will need sudo access on the system and it will also need a C compiler and the Oracle development libraries.
If you have problems when you try it, post details of the errors you get in a new question here and we'll try to help you.
[root#test exim-4.80.1]# make
`Makefile' is up to date.
make[1]: Entering directory `/opt/test/exim-4.80.1/build-Linux-x86_64'
>>> version 4.80.1 #14
gcc exim_monitor/em_StripChart.c
../exim_monitor/em_StripChart.c:40:28: error: X11/IntrinsicP.h: No such file or directory
../exim_monitor/em_StripChart.c:41:28: error: X11/StringDefs.h: No such file or directory
../exim_monitor/em_StripChart.c:42:29: error: X11/Xaw/XawInit.h: No such file or directory
../exim_monitor/em_StripChart.c:43:32: error: X11/Xaw/StripCharP.h: No such file or directory
../exim_monitor/em_StripChart.c:44:24: error: X11/Xfuncs.h: No such file or directory
../exim_monitor/em_StripChart.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘resources’
../exim_monitor/em_StripChart.c:75: error: expected ‘)’ before ‘unsigned’
../exim_monitor/em_StripChart.c:76: error: expected ‘)’ before ‘unsigned’
../exim_monitor/em_StripChart.c:78: warning: parameter names (without types) in function declaration
../exim_monitor/em_StripChart.c:79: warning: parameter names (without types) in function declaration
../exim_monitor/em_StripChart.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SetValues’
../exim_monitor/em_StripChart.c:82: error: expected ‘)’ before ‘int’
../exim_monitor/em_StripChart.c:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘stripChartClassRec’
../exim_monitor/em_StripChart.c:126: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mystripChartWidgetClass’
../exim_monitor/em_StripChart.c: In function ‘CreateGC’:
../exim_monitor/em_StripChart.c:145: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:148: error: ‘XGCValues’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:148: error: (Each undeclared identifier is reported only once
../exim_monitor/em_StripChart.c:148: error: for each function it appears in.)
../exim_monitor/em_StripChart.c:148: error: expected ‘;’ before ‘myXGCV’
../exim_monitor/em_StripChart.c:150: error: ‘FOREGROUND’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:151: error: ‘myXGCV’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:151: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:152: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:152: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:152: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:155: error: ‘HIGHLIGHT’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:156: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:157: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:157: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c: In function ‘DestroyGC’:
../exim_monitor/em_StripChart.c:170: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:173: error: ‘FOREGROUND’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:174: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:174: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:176: error: ‘HIGHLIGHT’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:177: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c: In function ‘Initialize’:
../exim_monitor/em_StripChart.c:182: error: expected declaration specifiers before ‘Widget’
../exim_monitor/em_StripChart.c:184: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:184: error: expected ‘;’ before ‘w’
../exim_monitor/em_StripChart.c:186: error: ‘w’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:190: error: ‘XtPointer’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:190: error: expected ‘)’ before ‘gnew’
../exim_monitor/em_StripChart.c:191: error: ‘ALL_GCS’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c: In function ‘Destroy’:
../exim_monitor/em_StripChart.c:201: error: expected declaration specifiers before ‘Widget’
../exim_monitor/em_StripChart.c:203: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:203: error: expected ‘;’ before ‘w’
../exim_monitor/em_StripChart.c:205: error: ‘w’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:209: error: ‘ALL_GCS’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c: In function ‘Redisplay’:
../exim_monitor/em_StripChart.c:220: error: expected declaration specifiers before ‘Widget’
../exim_monitor/em_StripChart.c:221: error: expected declaration specifiers before ‘XEvent’
../exim_monitor/em_StripChart.c:222: error: expected declaration specifiers before ‘Region’
../exim_monitor/em_StripChart.c:224: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:224: error: ‘GraphicsExpose’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:225: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:225: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:228: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c: In function ‘draw_it’:
../exim_monitor/em_StripChart.c:235: error: expected declaration specifiers before ‘XtPointer’
../exim_monitor/em_StripChart.c:236: error: expected declaration specifiers before ‘XtIntervalId’
../exim_monitor/em_StripChart.c:238: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:238: error: expected ‘;’ before ‘w’
../exim_monitor/em_StripChart.c:241: error: ‘w’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:243: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:243: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:247: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:254: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:270: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:285: error: ‘CoordModePrevious’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c: In function ‘repaint_window’:
../exim_monitor/em_StripChart.c:306: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:310: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:311: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:316: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:316: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:317: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:318: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:319: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:323: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:324: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:327: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:331: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:331: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:336: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:337: error: ‘Display’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:337: error: ‘dpy’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:338: error: ‘Window’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:338: error: expected ‘;’ before ‘win’
../exim_monitor/em_StripChart.c:347: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:348: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:348: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:349: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:351: error: ‘win’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:351: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:353: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:357: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:358: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:358: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:359: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c: At top level:
../exim_monitor/em_StripChart.c:373: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:433: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SetValues’
../exim_monitor/em_StripChart.c:435: error: expected identifier or ‘(’ before ‘{’ token
../exim_monitor/em_StripChart.c: In function ‘SetPoints’:
../exim_monitor/em_StripChart.c:481: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:483: error: ‘XPoint’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:483: error: ‘points’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:484: error: ‘Cardinal’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:484: error: expected ‘;’ before ‘size’
../exim_monitor/em_StripChart.c:487: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:488: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:489: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:493: error: ‘size’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:493: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:495: error: expected expression before ‘)’ token
../exim_monitor/em_StripChart.c:496: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:500: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:502: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:502: error: invalid type argument of ‘->’ (have ‘int’)
make[1]: *** [em_StripChart.o] Error 1
make[1]: Leaving directory `/opt/test/exim-4.80.1/build-Linux-x86_64'
make: *** [all] Error 2
please help.... i am trying to install exim from source for the first time. but this error occurs when i try to make exim. i cant use yum or rpm because this is a task given to me to install exim from source. thank you.
exim-monitor or eximon is an X-based tool. When exim is configured to be built with eximon a lot of X-related dependencies are required. If some required soft/lib wasn't installed - you'll get an error.
To avoid that error just disable eximon in the exim build config.
I had something similar on Centos 6 minimal install. This is what I had to install (as root):
(Mine is a custom build with LDAP and TLS, so there may be more here than you need).
yum install pcre-devel
yum install libxext-dev
yum install xorg-x11-proto-devel
yum install libXt-devel
yum install openldap-devel
yum install openssl-devel
yum install Xaw-devel
yum install Xaw3d-devel
yum install Xaw3d
yum install libXaw-devel
I'm trying to understand how to fix error:
C:\inetpub\wwwroot\DISCOU~2>gem install fast_stack
ERROR: Error installing fast_stack:
ERROR: Failed to build gem native extension.
C:/Ruby200/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR="
generating fast_stack-i386-mingw32.def
compiling fast_stack.c
In file included from c:/Ruby200/include/ruby-2.0.0/ruby/defines.h:153:0,
from c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:70,
from c:/Ruby200/include/ruby-2.0.0/ruby.h:33,
from fast_stack.c:3:
c:/Ruby200/include/ruby-2.0.0/ruby/win32.h:276:12: error: conflicting types for 'gettimeofday'
In file included from fast_stack.c:2:0:
c:\ruby200\devkit\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/sys/time.h:42:13: note: previous declaration of 'gettimeofday' was here
fast_stack.c: In function 'rb_profile_start':
fast_stack.c:9:22: error: storage size of 'timer' isn't known
fast_stack.c:11:34: error: 'suseconds_t' undeclared (first use in this function)
fast_stack.c:11:34: note: each undeclared identifier is reported only once for each function it appears in
fast_stack.c:11:46: error: expected ';' before 'rb_num2long_inline'
fast_stack.c:13:5: warning: implicit declaration of function 'setitimer' [-Wimplicit-function-declaration]
fast_stack.c:13:15: error: 'ITIMER_REAL' undeclared (first use in this function)
fast_stack.c:9:22: warning: unused variable 'timer' [-Wunused-variable]
fast_stack.c: In function 'rb_profile_stop':
fast_stack.c:21:22: error: storage size of 'timer' isn't known
fast_stack.c:23:15: error: 'ITIMER_REAL' undeclared (first use in this function)
fast_stack.c:21:22: warning: unused variable 'timer' [-Wunused-variable]
make: *** [fast_stack.o] Error 1
Gem files will remain installed in C:/inetpub/wwwroot/DISCOU~2/GEM_HOME/gems/fast_stack-0.1.0 for inspection.
It happens when I write "bundle install" command for the discourse.org application installing on Helicon Zoo environment.
It appears that it's not the Zoo itself, more issue with the gem. Try to install it separately, outside the environment of Zoo. Simply Ruby, in test catalog, but outside the Zoo. If that's working, contact HeliconTech directly and address as an issue, they're quite quick and good at fixing these things.
I've downloaded Stalin Scheme and tried to install it on OSX, but I've got this error:
gcc -O -I./include -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DSILENT -DALL_INTERIOR_POINTERS -DLARGE_CONFIG -DUSE_MMAP -DDONT_ADD_BYTE_AT_END -o if_mach ./if_mach.c
In file included from ./if_mach.c:3:
./include/private/gcconfig.h:477: error: expected identifier or ‘(’ before ‘--’ token
./if_mach.c: In function ‘main’:
./if_mach.c:14: error: ‘MACH_TYPE’ undeclared (first use in this function)
./if_mach.c:14: error: (Each undeclared identifier is reported only once
./if_mach.c:14: error: for each function it appears in.)
make: *** [if_mach] Error 1
cp: gc6.8/gc.a: No such file or directory
ranlib: can't open file: include/libgc.a (No such file or directory)
Cannot (yet) run Stalin on this architecture
Is there any workaround for this?
I am attempting to get octopress going and having trouble installing the required package posix-spawn.
Here this is the error output:
ERROR: Error installing posix-spawn:
ERROR: Failed to build gem native extension.
/home/private/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
creating Makefile
make
compiling posix-spawn.c
posix-spawn.c:9:19: error: spawn.h: No such file or directory
In file included from /home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby- 1.9.1/ruby/ruby.h:24,
from /home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from posix-spawn.c:14:
/home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/i386- freebsd8.3/ruby/config.h:17:1: warning: "_GNU_SOURCE" redefined
posix-spawn.c:3:1: warning: this is the location of the previous definition
posix-spawn.c:103: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_addclose':
posix-spawn.c:113: warning: implicit declaration of function 'posix_spawn_file_actions_addclose'
posix-spawn.c:113: error: 'fops' undeclared (first use in this function)
posix-spawn.c:113: error: (Each undeclared identifier is reported only once
posix-spawn.c:113: error: for each function it appears in.)
posix-spawn.c: At top level:
posix-spawn.c:129: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_adddup2':
posix-spawn.c:141: warning: implicit declaration of function 'posix_spawn_file_actions_adddup2'
posix-spawn.c:141: error: 'fops' undeclared (first use in this function)
posix-spawn.c: At top level:
posix-spawn.c:155: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_addopen':
posix-spawn.c:173: warning: implicit declaration of function 'posix_spawn_file_actions_addopen'
posix-spawn.c:173: error: 'fops' undeclared (first use in this function)
posix-spawn.c: At top level:
posix-spawn.c:186: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_operations_iter':
posix-spawn.c:190: error: 'fops' undeclared (first use in this function)
posix-spawn.c:190: error: too many arguments to function 'posixspawn_file_actions_addclose'
posix-spawn.c:193: error: too many arguments to function 'posixspawn_file_actions_adddup2'
posix-spawn.c:196: error: too many arguments to function 'posixspawn_file_actions_addopen'
posix-spawn.c: At top level:
posix-spawn.c:210: error: expected ')' before '*' token
posix-spawn.c:230: error: expected declaration specifiers or '...' before 'posix_spawnattr_t'
posix-spawn.c: In function 'posixspawn_set_pgroup':
posix-spawn.c:237: error: 'POSIX_SPAWN_SETPGROUP' undeclared (first use in this function)
posix-spawn.c:238: warning: implicit declaration of function 'posix_spawnattr_setpgroup'
posix-spawn.c:238: error: 'pattr' undeclared (first use in this function)
posix-spawn.c: In function 'each_env_check_i':
posix-spawn.c:253: warning: unused parameter 'arg'
posix-spawn.c: In function 'rb_posixspawn_pspawn':
posix-spawn.c:330: error: 'posix_spawn_file_actions_t' undeclared (first use in this function)
posix-spawn.c:330: error: expected ';' before 'fops'
posix-spawn.c:331: error: 'posix_spawnattr_t' undeclared (first use in this function)
posix-spawn.c:331: error: expected ';' before 'attr'
posix-spawn.c:332: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:341: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:381: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:391: warning: implicit declaration of function 'posixspawn_file_actions_init'
posix-spawn.c:391: error: 'fops' undeclared (first use in this function)
posix-spawn.c:392: warning: implicit declaration of function 'posix_spawnattr_init'
posix-spawn.c:392: error: 'attr' undeclared (first use in this function)
posix-spawn.c:395: error: 'POSIX_SPAWN_SETSIGMASK' undeclared (first use in this function)
posix-spawn.c:397: warning: implicit declaration of function 'posix_spawnattr_setsigmask'
posix-spawn.c:407: error: too many arguments to function 'posixspawn_set_pgroup'
posix-spawn.c:409: warning: implicit declaration of function 'posix_spawnattr_setflags'
posix-spawn.c:418: warning: implicit declaration of function 'posix_spawnp'
posix-spawn.c:427: warning: implicit declaration of function 'posix_spawn_file_actions_destroy'
posix-spawn.c:428: warning: implicit declaration of function 'posix_spawnattr_destroy'
posix-spawn.c:320: warning: unused parameter 'self'
*** Error code 1
I found this comment in Github that says to make sure spawn.h is in my /usr/include/ folder, but that seemed to have no effect.
Any other thoughts?
This problem was solved by the author but apparently never made its way into the ruby gems repo. You can see about it here.
You can clone the repo and compile it locally and this did the trick for me:
git clone https://github.com/rtomayko/posix-spawn.git
cd posix-spawn/
gem build posix-spawn.gemspec
gem install posix-spawn*.gem