So I downloaded Arduino 1.6.5 for linux 64 bit. I'm running ubuntu 14.04. I extracted the archive, entered the directory, and ran arduino. I tried to verify the trivial sketch that automatically loads and I get the errors below. I found a similar error in another forum post but I didn't find the answers useful and I think they were running on Windows. Has anyone seen this error? Can anyone help? Thanks!
Arduino: 1.6.5 (Linux), Board: "Arduino/Genuino Uno"
Build options changed, rebuilding all
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/chuck/arduino-1.6.5-r5/hardware/arduino/avr/cores/arduino -I/home/chuck/arduino-1.6.5-r5/hardware/arduino/avr/variants/standard /tmp/build4681891627605633478.tmp/sketch_sep15a.cpp -o /tmp/build4681891627605633478.tmp/sketch_sep15a.cpp.o
In file included from /home/chuck/arduino-1.6.5-r5/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
from sketch_sep15a.ino:1:
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1167:26: error: 'uint_farptr_t' was not declared in this scope
extern size_t strlen_PF (uint_farptr_t src) ATTR_CONST; /* program memory can't change /
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1168:27: error: 'uint_farptr_t' was not declared in this scope
extern size_t strnlen_PF (uint_farptr_t src, size_t len) ATTR_CONST; / program memory can't change /
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1168:53: error: expected primary-expression before 'len'
extern size_t strnlen_PF (uint_farptr_t src, size_t len) ATTR_CONST; / program memory can't change /
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1168:58: error: expression list treated as compound expression in initializer [-fpermissive]
extern size_t strnlen_PF (uint_farptr_t src, size_t len) ATTR_CONST; / program memory can't change */
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1169:37: error: 'uint_farptr_t' has not been declared
extern void *memcpy_PF (void *dest, uint_farptr_t src, size_t len);
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1170:37: error: 'uint_farptr_t' has not been declared
extern char *strcpy_PF (char *dest, uint_farptr_t src);
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1171:38: error: 'uint_farptr_t' has not been declared
extern char *strncpy_PF (char *dest, uint_farptr_t src, size_t len);
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1172:37: error: 'uint_farptr_t' has not been declared
extern char *strcat_PF (char *dest, uint_farptr_t src);
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1173:38: error: 'uint_farptr_t' has not been declared
extern size_t strlcat_PF (char *dst, uint_farptr_t src, size_t siz);
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1174:38: error: 'uint_farptr_t' has not been declared
extern char *strncat_PF (char *dest, uint_farptr_t src, size_t len);
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1175:39: error: 'uint_farptr_t' has not been declared
extern int strcmp_PF (const char *s1, uint_farptr_t s2) ATTR_PURE;
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1176:40: error: 'uint_farptr_t' has not been declared
extern int strncmp_PF (const char *s1, uint_farptr_t s2, size_t n) ATTR_PURE;
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1177:43: error: 'uint_farptr_t' has not been declared
extern int strcasecmp_PF (const char *s1, uint_farptr_t s2) ATTR_PURE;
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1178:44: error: 'uint_farptr_t' has not been declared
extern int strncasecmp_PF (const char *s1, uint_farptr_t s2, size_t n) ATTR_PURE;
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1179:41: error: 'uint_farptr_t' has not been declared
extern char *strstr_PF (const char *s1, uint_farptr_t s2);
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1180:38: error: 'uint_farptr_t' has not been declared
extern size_t strlcpy_PF (char *dst, uint_farptr_t src, size_t siz);
^
/home/chuck/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:1181:36: error: 'uint_farptr_t' has not been declared
extern int memcmp_PF(const void *, uint_farptr_t, size_t) ATTR_PURE;
^
Error compiling.