Author Topic: compiling on linux -> locale issue  (Read 1654 times)

0 Members and 1 Guest are viewing this topic.

Offline santaclause102

  • Hero Member
  • *****
  • Posts: 2486
    • View Profile
Compiled :) Thanks Xeroc for your hints!
« Last Edit: June 20, 2015, 11:16:44 pm by delulo »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc

Offline santaclause102

  • Hero Member
  • *****
  • Posts: 2486
    • View Profile
I have made the system default to be "en_US.UTF-8". I used this http://perlgeek.de/en/article/set-up-a-clean-utf8-environment ->Section: Locales: generation

When I do the "export LC_ALL="en_US.UTF-8" command that is suggested here  https://github.com/BitShares/bitshares/blob/master/BUILD_UBUNTU.md then I get the error: [translated from German so might not be exactly the same]: bash: Warning: setlocale: LC_ALL: Can not change locale (en_US.UTF-8): File oder folder not found.

The last time I ignored this error and then the make process didn't complete (see OP).

What can I do?

EDIT:
SOLUTION:
1) Logout - login after changing the system default.
2) If that doesnt work then:
Adding the following to /etc/environment:
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
« Last Edit: June 20, 2015, 01:26:18 pm by delulo »

Offline santaclause102

  • Hero Member
  • *****
  • Posts: 2486
    • View Profile
you need to setup your locales correctly:
https://help.ubuntu.com/community/Locale

make sure to have "en_US.UTF-8" enabled and built then try again with the export command in the OP
great, thanks xeroc! I will try when I am back home on the weekend...

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
you need to setup your locales correctly:
https://help.ubuntu.com/community/Locale

make sure to have "en_US.UTF-8" enabled and built then try again with the export command in the OP

Offline santaclause102

  • Hero Member
  • *****
  • Posts: 2486
    • View Profile
Anyone that has some input here?

Offline santaclause102

  • Hero Member
  • *****
  • Posts: 2486
    • View Profile
Hi,

so I attempted to compile according to this https://github.com/BitShares/bitshares/blob/master/BUILD_UBUNTU.md on a debian 64 bit system.

There is a newly added instruction
Code: [Select]
export LC_ALL="en_US.UTF-8"Doing this produced the follwoing error for me: "warning setlocale lc_all cannot change locale (en_us.utf-8)" (I left out a few signs because that is from memory). 
I ignored it... and compiled (make).
Later in the make process I got an error that might be related to the above or not. I dont have an internet connection on the respective machine and didnt want to type it all so here is a photo I made of the error message: http://imgur.com/SGQ7FaX
Don't be confused by the blue background. The blue and the grey background are the same. The blue is marked stuff...

Whats wrong? What should I do? Can I give more information?

Thanks for your help!
« Last Edit: June 08, 2015, 07:15:49 pm by delulo »