October 4, 20187 yr I'm using Perl since decades and tried to use one of the databases (mysql, mariadb, sqlite) to work with Perl on Unraid. When installing DBD::SQLite through cpan for example, I do get the following error: cc -c -I. -I/usr/lib64/perl5/vendor_perl/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -fPIC -DVERSION=\"1.58\" -DXS_VERSION=\"1.58\" -fPIC "-I/usr/lib64/perl5/CORE" -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS5 -DNDEBUG=1 -DHAVE_USLEEP=1 SQLite.c cc: error trying to exec 'as': execvp: No such file or directory In file included from SQLiteXS.h:11:0, from SQLite.xs:3: /usr/lib64/perl5/CORE/perl.h:694:10: fatal error: sys/types.h: No such file or directory #include <sys/types.h> ^~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:362: SQLite.o] Error 2 ISHIGAKI/DBD-SQLite-1.58.tar.gz /usr/bin/make -- NOT OK Failed during this command: ISHIGAKI/DBD-SQLite-1.58.tar.gz : make NO I looked through everything from DevPack and NerdPack but I can't find a package with these header files. How do I get these? Any help is highly appreciated. Thanks in advance.
October 4, 20187 yr Community Expert I would have thought that would be installed when you install gcc via Nerd Pack since is a standard C header file? Edited October 4, 20187 yr by itimpi
October 4, 20187 yr Author GC and GCC are installed. Must be something different. I can't find a file called types.h on my machine. What additional package do I need to install? Thanks.
October 5, 20187 yr I haven't tested this but I'd guess you need glibc - if you have a working config somewhere you can probably figure out which package it came from. I think on a normal slackware install you'd be able to do something like: grep -i types.h /var/log/packages/* Of course, you could quickly build a vm and figure this out too.
October 6, 20187 yr Author Thank you very much. glibc was it - but that was not all. There was a version/compile mismatch for "as" and "sqlite". The Dev Pack showed "installed" but I had to install sqlite and binutils again from the Dev Pack. Seems that unRAID core and Dev Pack include executables of different versions and/or compile options.
Archived
This topic is now archived and is closed to further replies.