Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need sys/types.h - how do I get it?

Featured Replies

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.

 

  • 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 by itimpi

  • 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.

 

GCC.jpg

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.

  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.