cygwin

connecting to mysql from cygwin

*爱你&永不变心* 提交于 2020-01-06 05:46:08
问题 I can successfully connect to MySQL from a DOS prompt, but when I try to connect from cygwin, it just hangs. $/cygdrive/c/Program\ Files/MySQL/MySQL\ Server\ 5.1/bin/mysql -u root -p What's wrong? 回答1: Assuming that you have a native Windows build of MySQL, there is a terminal emulation incompatibility between DOS (command prompt) windows and bash . The prompt for mysql isn't showing up. To confirm this, type a command and return - it will probably work, but the prompt and the echo of the

cygwin maven rpm “Segmentation fault”

旧巷老猫 提交于 2020-01-05 19:48:55
问题 I am trying to use cygwin maven to build a rpm (following steps in http://tim-perry.co.uk/blog/2012/11/22/building_rpms_on_windows_with_maven), and got this below error: [ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-3:rpm (default-rpm) on project my-project: RPM query for default vendor returned: '-1073741819' executing 'cmd.exe /X /C "rpm -E %{_host_vendor}"' -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus

Why does my Cygwin setup tell me Python3.6 not installed?

橙三吉。 提交于 2020-01-05 15:17:15
问题 Python 3.6 has been installed (using the Cygwin setup .exe file, update, etc.). The executable is located in /bin/ ... or is it located in /usr/bin/ ? Cygwin ls command shows that /usr/bin exists... but on Windows this directory is non-existent. Also the contents of both directories are identical, including if I change a filename... but I haven't as yet found a symlink (in /usr or in / ) to explain this! I'm struggling to get virtualenvwrapper installed (this is part of a preparation required

How to convert Hexadecimal to Decimal?

落花浮王杯 提交于 2020-01-05 13:06:19
问题 I have different hexadecimal data are coming and stored into an integer type register. When I use fprint I can see the following: 0x3076 0x307c . . . However, I would like to show a Decimal version of above-mention Hex data as follows. 12406 12412 . . . In theory, let's say for the first value you do the following to convert it to decimal. (6* 16^0)+(7 * 16^1)+(0*16^2)+(3*16^3)=6 + 112+ 0 + 12288 = 12406 So IF I have the character-based version of "0x3076" and also, IF I am able to get each

How can I know if my python script is running? (using Cygwin or Windows shell)

寵の児 提交于 2020-01-05 10:09:38
问题 I have a python script named sudoserver.py that I start in a CygWin shell by doing: python sudoserver.py I am planning to create a shell script (I don't know yet if I will use Windows shell script or a CygWin script) that needs to know if this sudoserver.py python script is running. But if I do in CygWin (while sudoserver.py is running): $ ps -e | grep "python" -i 11020 10112 11020 7160 cons0 1000 00:09:53 /usr/bin/python2.7 and in Windows shell : C:\>tasklist | find "python" /i python2.7.exe

Error while executing build.sh in ffmpeg-android

♀尐吖头ヾ 提交于 2020-01-05 07:49:10
问题 I downloaded ffmpeg-android from the link : http://bambuser.com/opensource I followed the steps given in the file README available in that downloaded folder. I tried compiling ffmpeg with both android NDK r5 and r6, but got the same error which is as below: arm-linux-androideabi-gcc is unable to create an executable file. C compiler test failed. If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the

Cygwin: Compile cpp file with asm tag

大兔子大兔子 提交于 2020-01-05 04:59:11
问题 I'm new with assembly and currently trying to create a c++ code with asm tag. I'm using cygwin to compile. Here is my code: #include <iostream> using namespace std; int main() { float flp1_num, flp2_num, flp_rslt1; cin >>flp1_num >>flp2_num; __asm { FLD flp1_num FLDPI FADD flp2_num FST flp_rslt1 } cout << flp_rslt1; } The syntax is used is from here. I'm compiling using g++ arq.cpp -o arq.exe which gives me error saying: arq.cpp: In function ‘int main()’: arq.cpp:13:5: error: expected ‘(’

Error while installing Google Cloud SDK in Cygwin : Unable to fetch https://dl.google.com/dl/cloudsdk/release/components-2.json

和自甴很熟 提交于 2020-01-05 04:42:09
问题 While installing the Google cloud SDK in Cygwin, I'm getting the error. If you are developing an App Engine application, please select the language your application is written in. This will install the required tools and runtimes for working in that language. If necessary, you can add and remove languages later through the gcloud component manager. [1] Java [2] Python and PHP [3] Go [4] No App Engine (you can install App Engine tools later) Please enter your numeric choice (4): 1 (gcloud

how do you use cygwin to compile an R package from source?

佐手、 提交于 2020-01-05 04:26:09
问题 I am trying to install an R package from source: https://sourceforge.net/projects/pdq-qnm-pkg/files/PDQ-R%20Source/6.1-1/pdq_6.1-1.tar.gz I cannot install RTools to compile but I have Cygwin. How can install this package from source using Cygwin? when I do this: install.packages("pdq_6.1-1.tar.gz",repos=NULL,type="source") I get this error: Warning in install.packages : installation of package ‘PDQ-6.2.0.tar.gz’ had non-zero exit status 回答1: Without knowing the failures, you can not solve the

Compile for JNI in windows 7

纵然是瞬间 提交于 2020-01-05 04:13:32
问题 I am trying to compile an open source project called jbliss as a DLL under windows 7, so that I can use it with JNI in Java. Everything works fine in Linux using the makefile already provided in the package. My first search pointed me to cygwin, and then I followed several suggestions, like this one, which basically tells me to use: gcc-3 -D __int64="long long" -mno-cygwin -Wl,--add-stdcall-alias -I"<JAVA_HOME>\include" -I"<JAVA_HOME>\include\win32" -shared -o jbliss.dll *.cc This brings me