Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZV1rR-0004qq-Hs for pgsql-admin@arkaria.postgresql.org; Thu, 27 Aug 2015 18:25:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZV1rQ-0007kn-Va for pgsql-admin@arkaria.postgresql.org; Thu, 27 Aug 2015 18:25:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZV1rQ-0007jM-6y for pgsql-admin@postgresql.org; Thu, 27 Aug 2015 18:25:16 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZV1rN-0007WU-Hm for pgsql-admin@postgresql.org; Thu, 27 Aug 2015 18:25:15 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D19B120D5C for ; Thu, 27 Aug 2015 14:25:12 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 27 Aug 2015 14:25:12 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=o0aAfCZQCwkg/aMSDij8TnRhiik=; b=DcSqBM MLfN0ktjetJnQkc0jpB5NxBKkTi7fkDbIti7PVISo8XBVJDxlMoOi5qFN9xtyBQ+ QvDx7yHmSUN//xnWog8PCZFHdwdpoa2PXynAj7l6zg2a7l6U4+Xv3Y5qp+zyRIHl arZcrFmAALQkLv9h2nINmsCmHEY3KSwwX5B2E= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=o0aAfCZQCwkg/aM SDij8TnRhiik=; b=Pr/P4V7oEnIlns9k0cYWaqWbG6/WKZI4FqoYeD+HRSaeRn3 j6Cue6VIH3eUxkuR8w63VxUWLVib0aKmgEx5lrhEvrwSJH0jK9j9GfAx1iRgkXqK 4bnlfsZK1tJT72rbRBMMY+sz0zuRqCfI5AjBWbYYmSZmCSfpvNwRnNE9r6GQ= X-Sasl-enc: y//iaYSYq3y7qlVZVeSrhrnRbRKUGTZTNDmpFzLcK3Fc 1440699912 Received: from killi.site (unknown [74.220.243.219]) by mail.messagingengine.com (Postfix) with ESMTPA id 29B3BC00013; Thu, 27 Aug 2015 14:25:12 -0400 (EDT) Subject: Re: [GENERAL] $libdir/mysql_fdw To: Ryan King - NOAA Affiliate , pgsql-general@postgresql.org, pgsql-admin@postgresql.org References: From: Adrian Klaver Message-ID: <55DF5607.5020704@aklaver.com> Date: Thu, 27 Aug 2015 11:25:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 08/27/2015 10:46 AM, Ryan King - NOAA Affiliate wrote: > When attempting to create the required functions and extensions for the > MySQL FDW, I get the following errors: > > dbname=# CREATE FUNCTION mysql_fdw_handler() > RETURNS fdw_handler > AS '$libdir/mysql_fdw' > LANGUAGE C STRICT; > > ERROR: could not access file "$libdir/mysql_fdw": No such file or directory > > dbname=# CREATE EXTENSION mysql_fdw; > > ERROR: could not open extension control file > "/usr/pgsql-9.4/share/extension/mysql_fdw.control": No such file or > directory > > What needs to be installed for this to work? > How did you install Postgres and/or mysql_fdw? If from source I would say your are missing the make install step: https://github.com/EnterpriseDB/mysql_fdw http://pgxn.org/dist/mysql_fdw/ > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin