<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to execute gcc-4.2 No such file or directory when adding MySQLdb Module in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-execute-gcc-4-2-No-such-file-or-directory-when-adding/m-p/35223#M6389</link>
    <description>&lt;P&gt;Trying to add the MySQLdb Module to my Splunk Python for Splunk scripted inputs from a db. It is complaining about gcc-4.2 Is there any suggestions on a safe way to add it or find it?&lt;/P&gt;

&lt;P&gt;my_splunk_machine:MySQL-python-1.2.3 splunker$ sudo python setup.py install&lt;BR /&gt;
running install&lt;BR /&gt;
running bdist_egg&lt;BR /&gt;
running egg_info&lt;BR /&gt;
writing MySQL_python.egg-info/PKG-INFO&lt;BR /&gt;
writing top-level names to MySQL_python.egg-info/top_level.txt&lt;BR /&gt;
writing dependency_links to MySQL_python.egg-info/dependency_links.txt&lt;BR /&gt;
reading manifest file 'MySQL_python.egg-info/SOURCES.txt'&lt;BR /&gt;
reading manifest template 'MANIFEST.in'&lt;BR /&gt;
warning: no files found matching 'MANIFEST'&lt;BR /&gt;
warning: no files found matching 'ChangeLog'&lt;BR /&gt;
warning: no files found matching 'GPL'&lt;BR /&gt;
writing manifest file 'MySQL_python.egg-info/SOURCES.txt'&lt;BR /&gt;
installing library code to build/bdist.macosx-10.6-universal/egg&lt;BR /&gt;
running install_lib&lt;BR /&gt;
running build_py&lt;BR /&gt;
copying MySQLdb/release.py -&amp;gt; build/lib.macosx-10.6-universal-2.6/MySQLdb&lt;BR /&gt;
running build_ext&lt;BR /&gt;
building '&lt;EM&gt;mysql' extension&lt;BR /&gt;
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,3,'final',0) -D&lt;/EM&gt;&lt;EM&gt;version&lt;/EM&gt;_=1.2.3 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _mysql.c -o build/temp.macosx-10.6-universal-2.6/_mysql.o -g -Os -arch x86_64 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL&lt;BR /&gt;
&lt;STRONG&gt;unable to execute gcc-4.2: No such file or directory&lt;BR /&gt;
error: command 'gcc-4.2' failed with exit status 1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Any help?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:42:28 GMT</pubDate>
    <dc:creator>davecroto</dc:creator>
    <dc:date>2020-09-28T09:42:28Z</dc:date>
    <item>
      <title>Unable to execute gcc-4.2 No such file or directory when adding MySQLdb Module</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-execute-gcc-4-2-No-such-file-or-directory-when-adding/m-p/35223#M6389</link>
      <description>&lt;P&gt;Trying to add the MySQLdb Module to my Splunk Python for Splunk scripted inputs from a db. It is complaining about gcc-4.2 Is there any suggestions on a safe way to add it or find it?&lt;/P&gt;

&lt;P&gt;my_splunk_machine:MySQL-python-1.2.3 splunker$ sudo python setup.py install&lt;BR /&gt;
running install&lt;BR /&gt;
running bdist_egg&lt;BR /&gt;
running egg_info&lt;BR /&gt;
writing MySQL_python.egg-info/PKG-INFO&lt;BR /&gt;
writing top-level names to MySQL_python.egg-info/top_level.txt&lt;BR /&gt;
writing dependency_links to MySQL_python.egg-info/dependency_links.txt&lt;BR /&gt;
reading manifest file 'MySQL_python.egg-info/SOURCES.txt'&lt;BR /&gt;
reading manifest template 'MANIFEST.in'&lt;BR /&gt;
warning: no files found matching 'MANIFEST'&lt;BR /&gt;
warning: no files found matching 'ChangeLog'&lt;BR /&gt;
warning: no files found matching 'GPL'&lt;BR /&gt;
writing manifest file 'MySQL_python.egg-info/SOURCES.txt'&lt;BR /&gt;
installing library code to build/bdist.macosx-10.6-universal/egg&lt;BR /&gt;
running install_lib&lt;BR /&gt;
running build_py&lt;BR /&gt;
copying MySQLdb/release.py -&amp;gt; build/lib.macosx-10.6-universal-2.6/MySQLdb&lt;BR /&gt;
running build_ext&lt;BR /&gt;
building '&lt;EM&gt;mysql' extension&lt;BR /&gt;
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,3,'final',0) -D&lt;/EM&gt;&lt;EM&gt;version&lt;/EM&gt;_=1.2.3 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _mysql.c -o build/temp.macosx-10.6-universal-2.6/_mysql.o -g -Os -arch x86_64 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL&lt;BR /&gt;
&lt;STRONG&gt;unable to execute gcc-4.2: No such file or directory&lt;BR /&gt;
error: command 'gcc-4.2' failed with exit status 1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:42:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-execute-gcc-4-2-No-such-file-or-directory-when-adding/m-p/35223#M6389</guid>
      <dc:creator>davecroto</dc:creator>
      <dc:date>2020-09-28T09:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute gcc-4.2 No such file or directory when adding MySQLdb Module</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-execute-gcc-4-2-No-such-file-or-directory-when-adding/m-p/35224#M6390</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Same issue.&lt;BR /&gt;
Did you found the solution ?&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2011 15:42:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-execute-gcc-4-2-No-such-file-or-directory-when-adding/m-p/35224#M6390</guid>
      <dc:creator>badben</dc:creator>
      <dc:date>2011-11-20T15:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute gcc-4.2 No such file or directory when adding MySQLdb Module</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-execute-gcc-4-2-No-such-file-or-directory-when-adding/m-p/35225#M6391</link>
      <description>&lt;P&gt;This really isn't a Splunk question, but it's been here forever and has double points so I'll try.  &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;It looks like you are compiling on an OS X machine.  Normally &lt;CODE&gt;gcc&lt;/CODE&gt; is not named &lt;CODE&gt;gcc-4.2&lt;/CODE&gt;.  Make sure your system has the &lt;CODE&gt;gcc&lt;/CODE&gt; compiler - you may need to install it either from a ports package or install XCode.  (My imac at home has XCode and has /usr/bin/gcc but not /usr/bin/gcc-4.2)&lt;/P&gt;

&lt;P&gt;You have a variety of possible paths:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;look for this code already compiled as part of a ports package&lt;/LI&gt;
&lt;LI&gt;consult with the MySQL lists for assistance with compiling their driver&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;make sure you have gcc installed, then hack in a symlink to gcc-4.2 -&amp;gt; gcc like this&lt;/P&gt;

&lt;P&gt;sudo ln -s /usr/bin/gcc /usr/local/bin/gcc-4.2&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 19 Jul 2013 17:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-execute-gcc-4-2-No-such-file-or-directory-when-adding/m-p/35225#M6391</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2013-07-19T17:39:20Z</dc:date>
    </item>
  </channel>
</rss>

