Yes we tried, but without success. Our cache of packages was deleted by admin a couple of months ago. And we can't find our version online.For pre-compiled binaries of MySQL have you triedpkg install
instead of compiling from ports?
If you still have a working version you can make a new package cache like this:Yes we tried, but without success. Our cache of packages was deleted by admin a couple of months ago. And we can't find our version online.
mkdir pkgcache
cd pkgcache
pkg create -a
pkg repo .
cd ..
tar -czpf pkgcache.tgz pkgcache
tar -xzpf pkgcache.tgz
cd pkgcache
pkg add mysql57-server-5.7.24.txz
My lord, a noble solution to the problem you have. Moving forward with this may not be possible for the OP. The reason being:If you still have a working version you can make a new package cache like this: ...
We are deleted the Mysql from server by mistake.
:(
Why make a whole repository if you're only after one package? That's a waste of effort, just use:If you still have a working version you can make a new package cache like this:
pkg create -x mysql
, then you'll end up with all the MySQL packages in the current directory. Copy those to the other location and you're done. pkg info -qdx mysql
will be able to sort out. Even if you have to sort them out manually then it'll still be a lot quicker than making a full repository from every installed package (the whole pkg repo
is unneeded because you'd end up using pkg add
anyway).Although 5.7 is gone 5.6 still exists: databases/mysql56-server. There's also databases/mysql80-server to consider.Can anyone provide me the MySQL 5.7.24 server package for i386? On all port storage I can find only x64 versions.
Is it a precise info, 5.7 is ended and won't be continued and/or fixed in ports for 32-bit support?Although 5.7 is gone
I can't really answer that because I'm not the port maintainer. I suppose it's possible, but it seems more likely to me that the port will be re-added as soon as they managed to solve that bug which prevents it from building. This is of course assuming that 5.7 is still officially maintained by the MySQL developers.Is it a precise info, 5.7 is ended and won't be continued and/or fixed in ports for 32-bit support?
I'm assuming you don't let strangers build and install things on your servers. So I would ask the person that did it before.But somebody can has already built this version for i386 as it was on our server and He/She has this binary.
Sorry to say but that's a useless effort. Other than the involved risks as hinted at by SirDice you're also assuming that the 3rd party used the same FreeBSD version as you have and used somewhat compatible build options. You're also hoping that the package dependencies match.But somebody can has already built this version for i386 as it was on our server and He/She has this binary. And I'm searching such person and asking to make the package with this binary and send it to me.
$ make run-depends-list
/usr/ports/ftp/curl
/usr/ports/devel/libevent
/usr/ports/archivers/liblz4
/usr/ports/devel/protobuf
/usr/ports/devel/libedit
/usr/ports/databases/mysql57-client
/usr/ports/security/openssl
/usr/ports/lang/perl5.26
Why? ( 1.) Expediency. Biggest system I ever did this for took less than 4 hours, even using a slow i386 system. Don't know how long it would take for me to sort out all the dependencies, lacking as I do your expertise in such matters. My brute-force method might require more machine time, but very little of my personal time, and the machine is still usable for other tasks while the repository is being prepared. ( 2.) Reliability. TheWhy make a whole repository if you're only after one package? That's a waste of effort, just use:pkg create -x mysql
, then you'll end up with all the MySQL packages in the current directory. Copy those to the other location and you're done.
Of course there are dependencies to keep in mind; but that's something whichpkg info -qdx mysql
will be able to sort out. Even if you have to sort them out manually then it'll still be a lot quicker than making a full repository from every installed package (the wholepkg repo
is unneeded because you'd end up usingpkg add
anyway).
pkg create -a
method is sure-fire, whereas my ability to do it effectively the way you're suggesting is questionable and, without a lot more studying on my part, unreliable. ( 3.) Feasibility. It's hard for me to work out all the dependencies for a package I have, still harder for a package which I don't have (and in this case, which nobody seems to have). Given all of that, my ability to effectively explain how to do it all in a brief post seems close to impossible. pkg repo
, I didn't know that. Even so, that step only takes about a minute, even on a big repo. I love the pkg create
command. Every time I use one of these self-prepared repos to duplicate an install, I get some of the time back which I spent preparing it, because I don't have to download everything again. Plus it helps to cut down the load on FreeBSD's busy servers and mirrors, and the pre-prepared packages will still be reliable and consistent for my application, even after the servers and mirrors get updated, or the package gets removed.Thanks, we did as you advised, to avoid future headache.I assume by "fixing libraries" you meant making a bunch of bad symlinks? Don't do that, it's going to haunt you later on. If you want/need to run 10.x binaries on a 11.x system install misc/compat10x.