Trying to link phoenix and MySQl compile.gettext error - mysql

Look, It's beesn two weeks and i found nothing on the subject so you guys are my only hope on this.
I started a web project on Erlang VM which is a phoenix Based application. and i've been trying for ages to link the MySql Database i built to the app.
I followed the guide provided on the site...
http://www.phoenixframework.org/docs/using-mysql
But when i arrive at the end of the guide, we have to initiate commands which i did. but when i do i get this strange error:
** (Mix) the task "compile.gettext" could not be found. did you mean "compile.leex"
I've tried looking everywhere and no answer. One forum i found told me to install Erlang-parsetool but to no success because it is already installed.
so i'm really in need of help right now. I'm not a setup guy and i've been setting this up for way to long. Thanks for the answers

Trying
sudo apt-get install erlang-dev fixed my problem.
And make sure you run,
sudo apt-get install erlang-parsetools
sudo apt-get install erlang-dev
Read the issue #93

Related

Can't install phpmyadmin to AlmaLinux 8.7 via Putty (Can't find phpmyadmin, when installing)

I am trying to get phpmyadmin installed with yum. I am a beginner regarding this and I have sofar managed to install the EPEL repo and also remi. But when I try to execute yum install phpMyAdmin it tells me it can't be found. I am thankful for any response!
I have tried many different things including what is shown in the picture, but also here it tells me that the php72w-fpm and php72w-opcache cannot be found.
enter image description here
php72w package are from webtatic which is a dead project for 3 years and does not provide anything for EL-8 or EL-9
For a proper configuration / usage of "remi" repository, follow the wizard instructions.
phpMyAdmin is in "remi" repository, which is not enabled by default as it replace some base packages.
So, once PHP is installed
dnf --enablerepo=remi install phpMyAdmin

Installation of Transcriber (http://trans.sourceforge.net/en/install.php)

I am going around with no success in installing Transcriber in Ubuntu. Way very difficult :s
I follow all the steps the link above, but no way of passing this part of installing first the tcltk - ./configure --enable-gcc --enable-shared --prefix=/usr/local
make
It doesn't work and gives a bunch of errors. SO I decided to search and do as here, to install tcltk - Install TCL/TK without root
So I tried the code but it didn't work again, starting here sudo ./configure --prefix=/opt/tcltk
It was saying I had no permissions in opt so I found a way to create a tcltk folder, fine, but when I put the sudo it comes:
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
Seeconfig.log' for more details.
`
I am tired of this guys, if you could please help me to install this I would be very thankful. I understand not that much of ubuntu. Thank you!
You can't compile without a compiler (and linker). They're usually not very happy about being installed in user directories.
sudo apt install build-essential
Alternatively, if you're just wanting to run Tcl code without installing, you can use KitCreator to get your own single-file executable. (Yes, that site will build one for you While-U-Wait. The guy who wrote it isn't big on fancy CSS, even more so than me, but he does make good technology deployments.) There are other options too, but they're either older or less easy to use without being able to install compilers and so on.

I am trying to install MySql on Debian 10 and keep getting an error. What am I doing wrong?

I keep trying to install either MySql or MariaDb on a fresh installation of Debian 10. Should be a simple process,(sudo apt-get install mariadb-server mariadb-client)
but I keep getting this error:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mariadb-client : Depends: mariadb-client-10.4 (>=
1:10.4.7+maria~buster) but it is not going to be installed
mariadb-server : Depends: mariadb-server-10.4 (>=
1:10.4.7+maria~buster) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
This is a fresh install. PHP and Apache2 are installed. I have tried several times using first MySql and then when that didn't work, I tried using MariaDb, but still get the same error. Not sure what else to do. I tried googling and the only thing close suggested ensuring that it wasn't installed and even purging any previous installations. I tried that but still doesn't work.
After working with this about 4 hours, I finally figured it out. When installing Debian, I was presented with some options regarding software to install. One of those options was to install Web server software. So, I chose to do so. That was a mistake. First, you don't get all of the needed php modules by selected that option. Secondly, that selection does install some of what is needed for MySql, but not enough to actually work.
So, in the end, for anyone else who has this issue, this is how I fixed it.
First, run the commands:
sudo service mysql stop
sudo apt-get --purge remove "mysql*"
sudo rm -rf /etc/mysql/
Then, make sure everything is gone by running
sudo updatedb
locate mysql
You will still see a few things, but make sure that you don't see a my.cnf file. That was the culprit in my case. If you do see it, delete it as well.
Now reinstall MySql and you shouldn't have any issues. If you are also installing phpMyAdmin, you will still need to run one more command to get the needed extensions.
sudo apt install php-imagick php-phpseclib php-php-gettext php7.3-common
php7.3-gd php7.3-imap php7.3-json php7.3-curl php7.3-zip php7.3-xml
php7.3-mbstring php7.3-bz2 php7.3-intl php7.3-gmp

Error Building Scaffolding Site Yesod

I have tried to setup the Yesod scaffolding site with MySQL, in the book it said to use yesod init but apparently that command no longer exists and I should use stack new project_name template. So I ran stack new project_name yesod-mysql which created all the files but then when running yesod devel from within the directory my site is in I get two errors. Below are the log contents for each:
mysql-0.1.4.log:
[1 of 2] Compiling Main ( C:\Users\James\AppData\Local\Temp\stack23220\mysql-0.1.4\Setup.hs, C:\Users\James\AppData\Local\Temp\stack23220\mysql-0.1.4\.stack-work\dist\ca59d0ab\setup\Main.o )
[2 of 2] Compiling StackSetupShim ( C:\sr\setup-exe-src\setup-shim-Z6RU0evB.hs, C:\Users\James\AppData\Local\Temp\stack23220\mysql-0.1.4\.stack-work\dist\ca59d0ab\setup\StackSetupShim.o )
Linking C:\Users\James\AppData\Local\Temp\stack23220\mysql-0.1.4\.stack-work\dist\ca59d0ab\setup\setup.exe ...
Configuring mysql-0.1.4...
setup.exe: The program 'mysql_config' is required but it could not be found
pcre-light-0.4.0.4.log:
Configuring pcre-light-0.4.0.4...
Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe: The program 'pkg-config' version
>=0.9.0 is required but it could not be found.
I've searched around a bit for a solution but couldn't find much. I also tried following the quick start guide on the Yesod website but that didn't fix anything.
I'm running Windows 7.
Thanks in advance :)
EDIT: I installed pkg-config via MSYS2 but that didn't help. I also tried installing MySQL but that didn't help regarding the mysql-config problem.
For mysql error seems like this can help
sudo apt-get install libmysqlclient-dev

How Do I Correct mysql.rb Drivers?

For the last several days, I've been struggling to get ruby on rails to work on my mac. The main culprit is MySQL. Every time I fix one thing, another error shows up. I upgraded/downgraded MySQL to play nice with ruby, rail and gems, but nothing. My latest error is:
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
/!\ FAILSAFE /!\ Wed Aug 05 21:09:23 -0700 2009
Status: 500 Internal Server Error
dlopen(/usr/local/lib/ruby/site_ruby/1.8/i686-darwin9.7.0/mysql.bundle, 9): Library not loaded: /usr/local/mysql/lib/libmysqlclient.16.dylib...
I don't have libmysqlclient.16.dylib; just *.15.dylib. Tried all the techniques, even installed or tried to install ruby-mysql-0.2.6 posted at tmtm.org
FYI: Last error prior to the one stated above had to do with authentication.
Appreciate any help.
Well, this question is a bit old already, but since I got here after getting the same error (but on LINUX), I would like to post my solution for future reference.
I simply had to install ruby-mysql.i686
yum install ruby-mysql.i686
Hope it helps somebody else in the future... tnx
Have you installed Xcode Developer tools? You can download it for free at http://developer.apple.com/.
Whenever I have issues with Ruby and MySQL, I never had Xcode installed. Could be wrong.
Answering my own question.
I don't know why and I don't know how, but took #Garrett's advice and re-installed Xcode. That didn't do anything. Went ahead and upgraded MySQL after that, which I had done before, and voilá! it worked. I'm guessing both re-installations finally got it working somehow. Weird!
Try using the below command . Provide the location of the mysql directory in your Mac .
sudo gem install mysql -- --with-mysql-dir= /usr/local/mysql
It looks like you haven't specified the location of mysql directory .
Good luck !