Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6823357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:46:23+00:00 2026-05-26T21:46:23+00:00

I have been attempting to install MySQL 5.1.59 from source for the last couple

  • 0

I have been attempting to install MySQL 5.1.59 from source for the last couple of days on a Debian server. Every time I run the build process everything appears to go completely smooth(including make test). After completing post install steps I try running the client and get a segmentation fault as seen below. I understand that I could easily install this using apt, but I am determined to build MySQL from source at least once. Any ideas or helpful hints would be greatly appreciated. Thanks ahead of time!

debiantesting-01:/usr/local/mysql# bin/mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.59-log Source distribution

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Segmentation fault

Here is a complete list of the commands I ran in order.

groupadd mysql
useradd -g mysql mysql
tar -xvf mysql*
cd mysql*
ls
./configure --prefix=/usr/local/mysql --with-extra-charsets=all
make
make test
make install
cd /usr/local/mysql
ls
chown -R mysql .
chgrp -R mysql .
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var
cp /usr/local/src/mysql*/support-files/my-medium.cnf /etc/my.cnf
/usr/local/mysql/share/mysql/mysql.server start --user=mysql
/usr/local/mysql/bin/mysql_secure_installation
bin/mysql -u root -p

I have tried starting the server with and without the –user flag and it doesn’t change the outcome. Also I have tried the command that it says “cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &” and it stays in the foreground and displays:

[1] 31150
debiantesting-01:/usr/local/mysql# 111115 09:37:30 mysqld_safe Logging to '/usr/local/mysql/var/debiantesting-01.err'.
111115 09:37:30 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var

After running that the log shows:

111115 10:30:42 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
111115 10:30:42 [Note] Event Scheduler: Loaded 0 events
111115 10:30:42 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.59-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution

If you need anymore information please feel free to ask and thank you very much for your time!

-Josh

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:46:24+00:00Added an answer on May 26, 2026 at 9:46 pm

    After taking the advice of Sjoerd I used gdb to run a backtrace and was able to find a bug report that matched my situation. http://bugs.mysql.com/bug.php?id=58497 is the link. Basically you have to modify the term.c file’s lines 904: comment it out and 914: set area equal to NULL.

    Example
    904: //char buf[TC_BUFSIZE];
    914: area = NULL;
    

    Once you have made these changes you should be able to rebuild MySQL.

    The file should be located at (MySQL Source Location)/cmd-line-utils/libedit/term.c

    otherwise you can use a find / -name "term.c" to find it.

    Hope this helps!

    -Josh

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For the last few days I have been attempting to find a method to
I have been attempting to do this for about a week. Every single time
I have been attempting to compile/run a sample WCF application from Juval Lowy's website
I'm attempting to build a method call from strings that have been passed into
For the past few days I have been attempting to write my own shell
I have been attempting to use an android.preference.DialogPreference inflated from XML, but the documentation
I have been attempting to set up magento on a shared hosting server that
I have been attempting to get the MySQL Embedded Library working in my C#
I have been attempting this for a few days now. I'm creating a sprite
I have been attempting to use ASP.NET MVC remote validation for username login access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.