terminal

Add pygame module in PyCharm IDE

柔情痞子 提交于 2019-12-18 04:37:08
问题 I've downloaded pygame-1.9.1release.tar.gz from the Pygame website. I extracted and installed it and it's working fine in the command line Python interpreter in Terminal (Ubuntu). But I want to install it for some IDE, like PyCharm. How can I do it? 回答1: Well, you don't have to download it for PyCharm here. You probably know how it checks your code. Through the interpreter! You don't need to use complex command lines or anything like that. You need to is: Download the appropriate interpreter

how to use and install SystemC in terminal mac OS X?

不想你离开。 提交于 2019-12-18 04:25:13
问题 how to use and install SystemC in terminal mac OS X? I tried the Logic poet application, But i use os x 10.10 so it doesn't work. so i want to know how can i compile and execute SystemC in terminal. I could't find the detail of SystemC in terminal. Thank you 回答1: The other answer is correct and perfectly fine, however, I thought I'd also answer and provide a little more detail. Install Apple's "Command Line Tools" You have two options: install Xcode (a big download), or just the command line

PDF Lib install fail on linux server. Using pecl install pdflib

為{幸葍}努か 提交于 2019-12-18 03:43:40
问题 I'm attempting to install pdflib on my server and receiving the error: configure: error: pdflib.h not found! Check the path passed to --with-pdflib=<PATH>. PATH should be the install prefix directory. ERROR: /root/tmp/pear/pdflib/configure --with-pdflib=/usr/local' failed I am entering the following in terminal: pecl install pdflib path to pdflib installation? : /usr/local 回答1: I got it solved this way: Downloaded latest http://www.pdflib.com/binaries/PDFlib/705/PDFlib-Lite-7.0.5p3.tar.gz #

Print on terminal and into file simultaneously?

浪子不回头ぞ 提交于 2019-12-18 02:59:26
问题 I have a shell script that greps some data.. I want to print the result into a file, but doing that prevents the result being displayed on the terminal. Is there a way that can both print the result on the screen and also write into a file. Thanks in advance. 回答1: Pipe your output to the tee command. Example: [me@home]$ echo hello | tee out.txt hello [me@home]$ cat out.txt hello Note that the stdout of echo is printed out as well as written to the file specified by thr tee command. 回答2: Note

Print on terminal and into file simultaneously?

為{幸葍}努か 提交于 2019-12-18 02:59:15
问题 I have a shell script that greps some data.. I want to print the result into a file, but doing that prevents the result being displayed on the terminal. Is there a way that can both print the result on the screen and also write into a file. Thanks in advance. 回答1: Pipe your output to the tee command. Example: [me@home]$ echo hello | tee out.txt hello [me@home]$ cat out.txt hello Note that the stdout of echo is printed out as well as written to the file specified by thr tee command. 回答2: Note

Binary data over serial terminal

情到浓时终转凉″ 提交于 2019-12-18 02:57:21
问题 My only way of communication with my embedded device is a serial port. By default, embedded Linux uses this port as a terminal. How do I disable this terminal and use the serial link to transfer binary data? I heard of commands like rx and tx but i cannot find them. I think I can just read() from and write() stuff to /dev/tty but I want to make sure no error messages or whatever mess with my data stream. 回答1: You can use an application like xmodem to transfer file over any terminal. Is the

Terminal not registering typing in Android Studio

久未见 提交于 2019-12-17 23:33:28
问题 When I open the terminal in android studio and type, nothing registers and the cursor stays put. The screen shot caught the cursor between flashes but it stays right by the > after app. Someone else had the same issue 4 months ago here : Android Studio terminal issue But no one came forward with solutions. Anyone know how to fix this? 回答1: This behavior is a problem related to an incompatibility between IntelliJ (and then Android Studio) and the new windows 10 console (https://youtrack

401 Unauthorized error while logging in Manager-App of Tomcat

一曲冷凌霜 提交于 2019-12-17 23:10:18
问题 I am trying to log in to the Manager App in Tomcat 7.0.22 for Mac OS X 10.7. Here is the error I am getting: http://f.cl.ly/items/421q1K3f1i0X1H1M181v/so.tiff 401 Unauthorized You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp. For example, to add the manager-gui role to a user named tomcat with a password of s3cret, add

Could not install packages due to an EnvironmentError: [Errno 13]

此生再无相见时 提交于 2019-12-17 22:57:15
问题 In my MacOS Mojave terminal I wanted to install a python package with pip. At the end it says: You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. So I wanted to update pip with the given command but I got an error: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip-18.0-py2.7.egg/EGG-INFO/PKG-INFO' Consider using the `--user`

Clean up ncurses mess in terminal after a crash

笑着哭i 提交于 2019-12-17 22:55:34
问题 I am drawing a TUI using ncurses. The trouble is that whenever my program gets seg-fault, my terminal is left in mess. I can not see what I am typing. Its a pain since I am working over ssh. I have mitigated some of the effect by using screen. I would like to know if there is a command which will refresh my terminal after seg-fault in ncurses so that my terminal starts behaving normally. 回答1: Command, stty sane^J did the job. UPDATE: On some terminals stty sane also works. 回答2: ncurses (any