How to install qemu patched version? [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I followed the following steps to install qemu
# On Linux, you may need to install the SDL development libraries to get a graphical VGA window. On Debian/Ubuntu, this is the libsdl1.2-dev package.
# Configure the source code
Linux: ./configure --disable-kvm [--prefix=PFX] [--target-list="i386-softmmu x86_64-softmmu"]
OS X: ./configure --disable-kvm --disable-sdl [--prefix=PFX] [--target-list="i386-softmmu x86_64-softmmu"]
The prefix argument specifies where to install QEMU; without it QEMU will install to /usr/local by default. The target-list argument simply slims down the architectures QEMU will build support for.
# Run make && make install
But I get the following error :
cannot create regular file `PFX/bin': No such file or directory

You must not literally enter PFX on the command line.
The PFX token is actually a placeholder for the actual path prefix passed to configure (usually either /usr, /usr/local or /opt, depending on where you want the package to be installed).

Related

how to install postgres from source code on ubuntu? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I followed following steps
make clean
./configure
sudo make install
shows -->
PostgreSQL installation complete.
but if typed psql
says -->
Command 'psql' not found, but can be installed with:
apt install postgresql-client-common
Please ask your administrator.
I dont want to install from apt-get install want to install everything from source code only
By default, PostgreSQL is installed in /usr/local/pgsql, so you would type /usr/local/pgsql/bin/psql for the command line client (but remember that you have to create and start a database cluster with initdb first`).
If you don't like that location, use the prefix option of configure:
./configure prefix=/dir/where/you/want/postgres
Usually, ./configure without options will install the product in /usr/local/ and this might not be in your PATH. Can you check psql is present in /usr/local/bin/? If so, you can type the full path to that or add /usr/local/bin/ to your PATH.

python 2.7 not working when I use it with sudo [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to install python2.7 on a VM which is centos 6.5. I followed a following guide to install it
http://toomuchdata.com/2014/02/16/how-to-install-python-on-centos/
However when I try to install run python as sudo i get the following error.
-bash: python2.7: command not found
running just python2.7 works. It even works when i run it as a root user. Also I noticed that:
which python2.7
returns
/usr/bin/which: no python2.7
when I do sudo -i and then run the command.
Any idea why it is like that?
If you're using CentOS 6.5, this is likely due to the fact that sudo does not set /usr/local/bin as part of the PATH.
CentOS 6.x's /etc/sudoers file sets the secure_path (which is used during sudo sessions) to a very restricted set of paths.
Use the visudo command and look at the contents of your /etc/sudoers file. You will likely find this section:
#
# Adding HOME to env_keep may enable a user to run unrestricted
# commands via sudo.
#
# Defaults env_keep += "HOME"
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
So sudo doesn't use the /usr/local/bin path.
You can solve your problem in a couple ways:
Add /usr/local/bin to the secure_path - This can open up security problems if you don't know what's gonna be in your /usr/local/bin directory. Though typically, this is probably not a huge concern because only root has write access to /usr/local/bin by default.
Disable secure_path entirely by commenting it out - again, you're overriding a feature designed to restrict access and improve security.
Try the following
sudo env PATH=$PATH python2.7
What this does is copy the current path you have into your new sudo's environment.

How to use local (user) installed version of VIM? - Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have vim 7.0 on my server machine and I don't have root permissions. So, I have extracted Vim73 to my home directory and installed using the following command without having any errors.
./configure --prefix=$HOME && make && make install
But still if I open vim it is showing the older version.
How can my .vimrc file read the latest version installed from local user (home)?
You need to add your home to your path:
export PATH=$HOME/bin:$PATH
If vim installs shared libraries, you'll also need to add your local libs path to your LD_LIBRARY_PATH:
export LD_LIBRARY_PATH=$HOME/lib:$HOME/lib64:$LD_LIBRARY_PATH
Choose lib or lib64 depending on what's present on your system.
Alternatively, call the binary with its absolute path:
$HOME/bin/vim
Create an alias in your .bashrc or .zshrc, ...
alias vim="/path/to/your/vim"
Configure the PATH variable to include the path to the locally installed vim. Or create an alias alias vim = /path/to/local/vim.

Nothing happens when trying to install a .run file from the terminal [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm new to linux. I have Ubuntu and I would like to run a .run installer in my Downloads folder. The name of the run file is "xampp.run"
I've read that you first have to run
chmod +x xampp.run
to change mode to installer and then run
./xampp.run
to run the installer. However, nothing happens when I try these. I'm running from root#ubuntu.
This is what I've done in my shell.
Download and install XAMPP for x86_64 Linux.
.run files are executables, not unlike windows-installers(M$)
You may need root permission to execute the file.
su to root, and enter the root password, or use sudo before your command
then either cd to the directory where the .run file is
or use "absolute addressing" and
type in a terminal shell...
sh (filename).run
Generally you can evoke a help screen (not always) by adding --help on the end.
sh (filename).run --help
(this may give you options to apply to the install script.)
Hope this helps
You should download 64bit version of Xampp.
this steps is for ubuntu user
sudo chmod 755 xampp-linux-1.8.2.0-installer.run
sudo ./xampp-linux-1.8.2.0-installer.run
(This will extract all the packages to the /opt/lampp directory)
Then start the service
/opt/lampp/lampp start

How to force RPM to install files in a single directory, Is it possible? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
rpm install command, installs files all over the place like: /usr/bin, /usr/sbin, /etc/, /usr/share
This way it's hard to figure out all the contents of the installation.
Is it possible to force rpm to install everything in a single directory?
you can use the --relocate to change 1 directory of the install process
rpm -i --relocate /usr/sbin=/some/other/path/sbin packagename.rpm
or use --prefix for the whole installation process
rpm -i --prefix=/some/other/path/ packagename.rpm
As noted elsewhere, don't do that.
However, if you want to see what files will be installed where:
rpm -qlp packagename.rpm
If you want to extract them to a different root to examine them (e.g. look at configuration files, etc), from a temporary directory:
rpm2cpio /path/to/rpm/packagename.rpm | cpio -div

Resources