Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mysql 5.7 unable to install ==config fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
picarica
Guru
Guru


Joined: 11 Aug 2018
Posts: 326

PostPosted: Fri May 31, 2024 7:58 am    Post subject: mysql 5.7 unable to install ==config fails Reply with quote

it seems it doesnt like my locale but how can i keep my locale and mysql?

Code:

sudo emerge --config dev-db/mysql


Configuring pkg...

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/emerge", line 57, in main
    retval = emerge_main()
             ^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/main.py", line 1308, in emerge_main
    return run_action(emerge_config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/actions.py", line 3876, in run_action
    return action_config(
           ^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/actions.py", line 758, in action_config
    retval = portage.doebuild(
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/portage/package/ebuild/doebuild.py", line 1218, in doebuild
    rval = _prepare_env_file(mysettings)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/portage/package/ebuild/doebuild.py", line 1686, in _prepare_env_file
    env_extractor.start()
  File "/usr/lib/python3.11/site-packages/_emerge/AsynchronousTask.py", line 34, in start
    self._start()
  File "/usr/lib/python3.11/site-packages/_emerge/BinpkgEnvExtractor.py", line 43, in _start
    env=self.settings.environ(),
        ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/portage/package/ebuild/config.py", line 3378, in environ
    raise AssertionError(
AssertionError: LC_ALL=en_IE.utf-8 for posixish locale. It seems that split_LC_ALL was not called for phase config?


Code:

locale
LANG=en_IE.utf8
LC_CTYPE="en_IE.utf-8"
LC_NUMERIC="en_IE.utf-8"
LC_TIME="en_IE.utf-8"
LC_COLLATE="en_IE.utf-8"
LC_MONETARY="en_IE.utf-8"
LC_MESSAGES="en_IE.utf-8"
LC_PAPER="en_IE.utf-8"
LC_NAME="en_IE.utf-8"
LC_ADDRESS="en_IE.utf-8"
LC_TELEPHONE="en_IE.utf-8"
LC_MEASUREMENT="en_IE.utf-8"
LC_IDENTIFICATION="en_IE.utf-8"
LC_ALL=en_IE.utf-8
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1730
Location: Germany

PostPosted: Fri May 31, 2024 11:16 am    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/Localization/Guide
Quote:
Using LC_ALL is strongly discouraged as it automatically overrides all other LC_* variables (LANG is not affected). This means that changes made by other means will be hidden until LC_ALL is set to a null string. It is probably best not to set it in a startup file.


also: https://forums.gentoo.org/viewtopic-t-739553.html

So correct your locale settings, rebuild the locales and try again.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22650

PostPosted: Fri May 31, 2024 12:53 pm    Post subject: Reply with quote

To expand on Banana's post, your locale output looks to me like LC_ALL is unnecessary at best, and as Banana suggests, harmful at worst. Remove LC_ALL (and only that one), leave your other LC_ variables set as-is, and retry.
Back to top
View user's profile Send private message
picarica
Guru
Guru


Joined: 11 Aug 2018
Posts: 326

PostPosted: Tue Jun 04, 2024 9:47 am    Post subject: Reply with quote

Hu wrote:
To expand on Banana's post, your locale output looks to me like LC_ALL is unnecessary at best, and as Banana suggests, harmful at worst. Remove LC_ALL (and only that one), leave your other LC_ variables set as-is, and retry.

thank you that fixed it, i changeld LC_ALL to an empty string and it works fine i set it up in the first place because even when i had correct locale set using eselect it would still use different one, but now i have this issue with mysql
it says it got error to check log, but logs are empty? kinda confused it said permission denied, but it seems it got correct permissions it even created the file should i open new issue about this ?
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1730
Location: Germany

PostPosted: Tue Jun 04, 2024 11:20 am    Post subject: Reply with quote

As the error message says permissions are missing.
Make sure you run the command with the correct user.

Please provide which command you did run and as which user.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
picarica
Guru
Guru


Joined: 11 Aug 2018
Posts: 326

PostPosted: Tue Jun 04, 2024 1:16 pm    Post subject: Reply with quote

Banana wrote:
As the error message says permissions are missing.
Make sure you run the command with the correct user.

Please provide which command you did run and as which user.


well i tried running as my user, it says superacces required, so i tried sudo emerge --config dev-db/mysql the error is
Code:
 *   Failed to initialize mysql data directory. Please review '/tmp/install_db.111112312.log'!

and the same error is when i do sudo -i and run it again
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum