Couldn't find libtoolize command in cygwin - cygwin

I am trying to configure apache thrift and i have installed cygwin to be able run the bash scripts on windows and i have installed libtool package as well and i still seem to be getting an error message:
couldn't find libtoolize!
I have also tried this in the DOS prompt and the bash shell as well, although you cant un bash scripts in the DOS window.
When I run a bash script. I would like some help with this please as I'm really interested in using the apache thrift platform.

'libtoolize' is a part of libtool.
You can dowload latest version of libtool from http://ftp.gnu.org/gnu/libtool/, extract it, then run ./configure and make install from cygwin terminal.
This worked for me.

Related

sudo/apt-get command not found in git bash

I am using Windows 10 in my machine, and currently installed git bash on it.
I wanted to install node and npm for my application.
when i tried :
apt-get install nodejs
"apt-get" command not found,
I tried google and got
sudo install nodejs
"sudo" command not found.
How to use sudo and apt-get command on my git bash.
Git for Windows comes with a Windows port of Bash and a collection of few more common *nix command-line tools that have been compiled for Windows, it does not provide a complete *nix environment. Hence you cannot use tools like sudo and apt-get which modify the *nix operating system.
However, there are other tools, programs if you like, available.
Try to install node " the windows way ".
win-sudo package adds sudo to windows.
kafaior at Super User suggests:
A working sudo replacement for Cygwin's mintty terminal would be to place the following script in user's PATH:
$!/bin/bash
cygstart --action=runas mintty -e `which bash` -lc \"$#\"
Maximus mentions how to add sudo (well, csudo) via cmder.
Super User has a similar question here.
It looks like there is a command runas or elevate commands. These might be for PowerShell, rather than git bash. I'm not sure.
I found your this while looking for a way to add rsync to Git Bash. So below I included info that may or may not work for sudo or apt-get. If they do not work directly for specific commands the OP is asking about, they may inspire a solution that does work. Also this could help others who arrived here as I did.
rsync is another unix command not available in the standard installation of git bash.
However, you can download and install the Git for Windows SDK (scroll to the bottom of the page for the link). This will allow you to create a version of the Git for Windows installer that does include additional *nx commands.
Install the Git for Windows SDK according to the instructions. Part 2 is where you add the packages you want, that aren't included in the standard git bash installation. Part 3 is where you create a Git installer, which will include the additional packages. If you skipped step 2, this should produce an installer similar to the standard installer.. There is a good discussion as to why they cannot include these commands in the general distribution.
It is also possible to just grab rsync filehere or here and unpack it directly within your Git installation, and it works. I dunno if it is also possible to do something similar for sudo or apt-get.
Finally, it looks like there is a way to get *nix commands available within the Git Bash shell via cmder. Here are the instructions.
Installing applications in git bash does not sound right to me. I would suggest you either use the native Windows installer (https://nodejs.org/) or, if you prefer a package manager, use Chocolatey (https://chocolatey.org/) to install nodejs with:
choco install nodejs

How to get latest cmake version from CentOS 6.5

Is there a good way to install latest cmake version from CentOS 6.5?
I'm doing yum install cmake but it's giving me 2.6.4 from base repo which I don't want.
I tried installing cmake28 but the problem is that when I try to do ./configure it throws an error saying cmake is not available.
rpm -Uv ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/Application:/Geo/CentOS_6/x86_64/cmake-3.0.0-143.1.x86_64.rpm
Hope this helps to somebody. If you have any problems with it let me know. Have fun.
I know this is an ancient question, but I got here by google searching and wanted to share what I knew so far.
when you sudo yum install cmake28, you get a /usr/bin/cmake28 binary on your machine. You can setup a symlink to make your configure script work via the following:
sudo ln -s /usr/bin/cmake28 /usr/bin/cmake
Not sure why the cmake28 package doesn't do this for you.
Well, after looking at the tutorial CMake gives on their website, it says download this and after that you have too type "./bootstrap" followed by "make" and "make install".
If you get any errors type "sudo" in front of all the said commands. If that doesn't work, your best bet would be too login to the root account by typing "su" and the root password following that.
If you already have cmake installed you should either follow the steps cmake offers on their website or try the command "sudo yum remove cmake".

How to install libmysql under Cygwin?

I am trying to build db-mysql extension for NodeJS under Cygwin. The problem is, that it requires libmysql development libraries and include files. I have no idea how to install (and where to get) this stuff to work with Cygwin. Under Ubuntu i would write something like this:
sudo apt-get install libmysqlclient-dev
But this is not possible under Cygwin. Also there is no available libmysql package when I run Cygwin's setup.exe. Does anybody know how to solve this isue?
I have installed wamp under Windows which includes MySQL database. I would like to use databases from that installation under Cygwin, is that possible?
Thanks
It's available from Cygwin Ports, a large repository of additional Cygwin packages that can be installed through Cygwin's setup.exe.

download emacs binary for linux?

I am trying to install emacs in offline computer.
but every time I try to build from the source and install it, it doesn't make it.
too complicated.
(terminal ./configure => error try with --without-makeinfo,
after a while, error try with --without-x,
after a while, error can't find emacs version...(and I also want to use X version))
so I want to download emacs binary file but I can't find for linux one.
where can I download pre-build binary emacs 23.3(lastest) for ubuntu?
I can download emacs 23.3 binary file for windows but not for ubuntu.
You could get the deb file directly from http://archive.ubuntu.com/ubuntu/pool/universe/e/emacs-snapshot/emacs-snapshot_20090909-1_amd64.deb and then try to install it using dpkg -i but there will probably be dependencies which you might miss. I'd suggest you try an apt-get install emacs-snapshot on your target machine. It will tell you all the packages it needs to fetch (along with URLs). Fetch all of them from a machine connected to the net and then dpkg -i those packages.
You can try the Ubuntu Emacs PPA here.
type in terminal
apt-get update
apt-get install emacs
for compile, are you download last version ? http://ftp.gnu.org/pub/gnu/emacs/
you can download deb file here
http://ir.archive.ubuntu.com/ubuntu/pool/main/e/emacs23/

Linux- error while running executable files

I am trying to run an executable file on newly installed Ubuntu and I am getting the following error:
>./hadoop
hadoop : Not a directoryh
>hadoop
hadoop command not found
Can anyone help me with it?
On Ubuntu you can try pre-packaged Cloudera's distribution. Works very well for me.
Add repositories for your version of Ubuntu, create user 'hadoop' (no root required to access configuration files)
This answer very conditional, but it might be the problem.
If you're running this on a 64-bit ubuntu, you're OS might not have the 32-bit linker libraries. To install them, run the following command:
sudo apt-get install ia32-libs
If it was the problem, it should work.
You need to make it executable first
chmod 777 ./hadoop
./hadoop

Resources