configure: error: Missing required libcurl dev >= 7.18.2

Error in CentOS


configure: error: Missing required libcurl dev >= 7.18.2
[[email protected] cgminer]# yum install libcurl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.nexicom.net
* epel: ftp.osuosl.org
* extras: centos.mirror.nexicom.net
* updates: centos.mirror.nexicom.net
Setting up Install Process
Package libcurl-7.19.7-37.el6_4.x86_64 already installed and latest version
Nothing to do

You have the newer version of libcurl, but it still showing errors.
I guess it need libcurl-devel.

So, it could be solved like this

Solved


yum install curl-devel

configure.ac:94: error: possibly undefined macro: AC_DEFINE

Error in CentOS

configure.ac:94: error: possibly undefined macro: AC_DEFINE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:125: error: possibly undefined macro: AC_MSG_ERROR
autoreconf: /usr/bin/autoconf failed with exit status: 1
Configuring...
configure: error: cannot find install-sh or install.sh in "." "./.." "./../.."

Solved

yum install pkgconfig

configure.ac:39: error: possibly undefined macro: AC_PROG_LIBTOOL

Error in CentOS


[[email protected] cgminer]# ./autogen.sh
configure.ac:39: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
Configuring...
./autogen.sh: line 10: /root/cgminer/configure: No such file or directory

Solve


yum install libtool

Error: org.macports.fetch for port sqlite3 returned: fetch failed

Error: org.macports.fetch for port sqlite3 returned: fetch failed
Please see the log file for port sqlite3 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_sqlite3/sqlite3/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets

Solve


port -v fetch caml-sqlite3

checking for Tcl configuration… configure: error: Can’t find Tcl configuration definitions


sh-3.2# port selfupdate
---> Updating MacPorts base sources using rsync
MacPorts base version 2.1.3 installed,
MacPorts base version 2.2.1 downloaded.
---> Updating the ports tree
---> MacPorts base is outdated, installing new version 2.2.1
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
sh-3.2# port -v selfupdate
---> Updating MacPorts base sources using rsync
receiving file list ... done

sent 36 bytes received 69 bytes 42.00 bytes/sec
total size is 4925440 speedup is 46908.95
receiving file list ... done

sent 36 bytes received 76 bytes 44.80 bytes/sec
total size is 512 speedup is 4.57
MacPorts base version 2.1.3 installed,
MacPorts base version 2.2.1 downloaded.
---> Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
receiving file list ... done

sent 36 bytes received 70 bytes 42.40 bytes/sec
total size is 58112000 speedup is 548226.42
receiving file list ... done

sent 36 bytes received 77 bytes 45.20 bytes/sec
total size is 512 speedup is 4.53
receiving file list ... done

sent 36 bytes received 70 bytes 42.40 bytes/sec
total size is 10119590 speedup is 95467.83
receiving file list ... done

sent 36 bytes received 77 bytes 45.20 bytes/sec
total size is 512 speedup is 4.53
---> MacPorts base is outdated, installing new version 2.2.1
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking target system type... x86_64-apple-darwin13.0.0
checking MacPorts version... 2.2.1
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.9
checking Xcode location... /Applications/Xcode.app/Contents/Developer
checking Xcode version... 5.0.2
checking for gcc... /usr/bin/cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/cc accepts -g... yes
checking for /usr/bin/cc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... yes
checking whether gcc accepts -g... yes
checking for bsdmake... no
checking for pmake... no
checking for bzip2... /usr/bin/bzip2
checking for bzr... no
checking for chown... /usr/sbin/chown
checking for cp... /bin/cp
checking for cpio... /usr/bin/cpio
checking for cvs... /usr/bin/cvs
checking for diff... /usr/bin/diff
checking for dscl... /usr/bin/dscl
checking for dseditgroup... /usr/sbin/dseditgroup
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for git... /usr/bin/git
checking for gnumake... /usr/bin/gnumake
checking for gnupatch... no
checking for gpatch... no
checking for gnutar... no
checking for gtar... no
checking for gzip... /usr/bin/gzip
checking for hdiutil... /usr/bin/hdiutil
checking for hg... no
checking for launchctl... /bin/launchctl
checking for lipo... /usr/bin/lipo
checking for lsbom... /usr/bin/lsbom
checking for lzma... no
checking for make... /usr/bin/make
checking for mdfind... /usr/bin/mdfind
checking for mdls... /usr/bin/mdls
checking for mkbom... /usr/bin/mkbom
checking for mtree... /usr/sbin/mtree
checking for open... /usr/bin/open
checking for openssl... /usr/bin/openssl
checking for patch... /usr/bin/patch
checking for pax... /bin/pax
checking for rmdir... /bin/rmdir
checking for rsync... /usr/bin/rsync
checking for sandbox-exec... /usr/bin/sandbox-exec
checking for sed... /usr/bin/sed
checking for svn... /usr/bin/svn
checking for swig... no
checking for tar... /usr/bin/tar
checking for unzip... /usr/bin/unzip
checking for xar... /usr/bin/xar
checking for xcodebuild... /usr/bin/xcodebuild
checking for xcrun... /usr/bin/xcrun
checking for xz... no
checking for zip... /usr/bin/zip
checking for launchd... yes
checking for sed... (cached) /usr/bin/sed
checking which sed flag to use for extended regexp... -E (BSD)
checking for tar... (cached) /usr/bin/tar
checking whether tar supports -q... yes (bsdtar)
checking for tar... (cached) /usr/bin/tar
checking for gnutar... no
checking for which tar variant to use... /usr/bin/tar
checking for /usr/bin/tar --no-same-owner support... no
checking for patch... (cached) /usr/bin/patch
checking for gpatch... no
checking for GNU (FSF) patch... /usr/bin/patch
checking how to mark unused variables...
checking for gcc symbol visibility attribute... __attribute__((visibility("hidden")))
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking how to run the Objective C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking objc/objc.h usability... yes
checking objc/objc.h presence... yes
checking for objc/objc.h... yes
checking if linking libobjc requires pthreads... no
checking for Apple Objective-C runtime... yes
checking for GNU Objective C runtime... no
configure: Using Apple Objective-C runtime
checking for Apple Foundation library... yes
configure: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library
configure: Using Apple Foundation library
checking for CoreFoundation framework... yes
checking for SystemConfiguration framework... yes
checking for IOKit framework... yes
checking for CFNotificationCenterGetDarwinNotifyCenter... yes
checking for whether we will build daemondo... yes
checking for ports tree... /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports
checking for MacPorts config directory... ${sysconfdir}/macports
checking for install user... root
checking for install group... admin
checking for macports user... macports
checking what permissions to use for installation directories... 0755
checking for Applications installation directory... /Applications/MacPorts
checking for Frameworks installation directory... /opt/local/Library/Frameworks
checking for Universal CPU architectures... x86_64 i386
checking how to run the C preprocessor... /usr/bin/cc -E
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/wait.h that is POSIX.1 compatible... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking crt_externs.h usability... yes
checking crt_externs.h presence... yes
checking for crt_externs.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/paths.h usability... yes
checking sys/paths.h presence... yes
checking for sys/paths.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for bzero... yes
checking for memset... yes
checking for fgetln... yes
checking for lockf... yes
checking for flock... yes
checking for setmode... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strlcpy... yes
checking for copyfile... yes
checking for clearenv... no
checking for sysctlbyname... yes
checking if readlink conforms to POSIX 1003.1a... yes
checking CommonCrypto/CommonDigest.h usability... yes
checking CommonCrypto/CommonDigest.h presence... yes
checking for CommonCrypto/CommonDigest.h... yes
checking for readline in -lreadline... yes
checking whether rl_username_completion_function is declared... no
checking whether rl_filename_completion_function is declared... yes
checking whether rl_completion_matches is declared... yes
checking whether username_completion_function is declared... yes
checking whether filename_completion_function is declared... yes
checking whether completion_matches is declared... yes
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
sh-3.2# xcode-select --install
xcode-select: note: install requested for command line developer tools

You have to install the xcode-select first


sudo xcode-select --install

Then upgrade the port

sudo port -v selfupdate

Why Mac OS X keep refreshing the Desktop ?

Why Mac OS keep refreshing the Desktop ?

It has been awhile, my updated Mac OS X keep refresh the desktop while I’m watching Youtube, Video and other works.
I found out the problem because of the Google Drive !

If you are using Google Drive, you may face this problem.

Solve Refreshing Desktop in Mac OS X

Log out and Exit your Google Drive, and re-login to your Google Drive again.
You will solve this problem.

Error: sqlite.bz2: [Errno -1] Metadata file does not match checksum

Error: sqlite.bz2: [Errno -1] Metadata file does not match checksum

[[email protected] ~]# yum update
Failed to set locale, defaulting to C
base | 3.7 kB 00:00
epel/metalink | 14 kB 00:00
extras | 3.4 kB 00:00
newrelic | 951 B 00:00
rpmforge-extras | 1.9 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 5.1 MB 00:00
http://centos.bhs.mirrors.ovh.net/ftp.centos.org/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirror.its.dal.ca/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
http://centos.mirror.iweb.ca/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
http://centos.mirror.rafal.ca/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
http://centos.mirror.nexicom.net/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
ftp://mirror.aarnet.edu.au/pub/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirror.us.leaseweb.net/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
ftp://mirror.bytemark.co.uk/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
ftp://mirror.anl.gov/pub/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirrors.coreix.net/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
updates/primary_db | 5.1 MB 00:00
http://centos.bhs.mirrors.ovh.net/ftp.centos.org/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirror.its.dal.ca/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
http://centos.mirror.iweb.ca/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
http://centos.mirror.rafal.ca/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
http://centos.mirror.nexicom.net/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
ftp://mirror.aarnet.edu.au/pub/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirror.us.leaseweb.net/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
ftp://mirror.bytemark.co.uk/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
ftp://mirror.anl.gov/pub/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirrors.coreix.net/centos/6/updates/x86_64/repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 416 Requested Range Not Satisfiable”
Trying other mirror.
Error: failure: repodata/83126d8c763e8bb681c7f11cc25bab255b053d8cbd4228035ea146254bf74624-primary.sqlite.bz2 from updates: [Errno 256] No more mirrors to try.

Solve the problem using this

[[email protected] ~]# yum clean metadata
Failed to set locale, defaulting to C
Cleaning repos: base epel extras newrelic rpmforge-extras updates varnish-3.0
18 metadata files removed
6 sqlite files removed
0 metadata files removed

phpMyAdmin – Error : Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly

phpMyAdmin - Error
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

I face this problem in CentOS 6 with nginx and php-fpm, so I solve using this way

sudo mkdir /var/lib/php/session
sudo chown nginx:nginx /var/lib/php/session
sudo chmod 777 /var/lib/php/session

The restart both service

service nginx reload
service php-fpm reload

Done.