Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why does virtualenv* have an asteriks at the end? What alias of ls do you have. If i recall correctly * means a symlink to something. Check out with ls -l.
Is /opt/local/bin in your $PATH? I'd vote for no so make is not able to find virtualenv.
Can you ./configure with an explisit path to virtualenv?
Okay the ls -l did not show any symlinks. So the * at the end of the filenames puzzle me even more. What happens if you run virutalenv* (outside of make).
Quote:
cd /opt/local/bin
./virtualenv*
To add to a variable
Quote:
PATH="$PATH:/opt/local/bin"
The : is the path seperator and needs to be included. check out your PATH var before and after with echo $PATH
configure should have an --help option. Try ./configure --help in the source code path.
[admin@Qnap bin]# ./virtualenv*
There must be only one argument: DEST_DIR (you gave ./virtualenv-2.6 ./virtualenv-2.7)
Usage: virtualenv [OPTIONS] DEST_DIR
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-v, --verbose Increase verbosity.
-q, --quiet Decrease verbosity.
-p PYTHON_EXE, --python=PYTHON_EXE
The Python interpreter to use, e.g.,
--python=python2.5 will use the python2.5 interpreter
to create the new environment. The default is the
interpreter that virtualenv was installed with
(/opt/bin/python2.7)
--clear Clear out the non-root install and start from scratch.
--no-site-packages DEPRECATED. Retained only for backward compatibility.
Not having access to global site-packages is now the
default behavior.
--system-site-packages
Give the virtual environment access to the global
site-packages.
--always-copy Always copy files rather than symlinking.
--unzip-setuptools Unzip Setuptools when installing it.
--relocatable Make an EXISTING virtualenv environment relocatable.
This fixes up scripts and makes all .pth files
relative.
--no-setuptools Do not install setuptools (or pip) in the new
virtualenv.
--no-pip Do not install pip in the new virtualenv.
--no-wheel Do not install wheel in the new virtualenv.
--extra-search-dir=DIR
Directory to look for setuptools/pip distributions in.
This option can be used multiple times.
--never-download DEPRECATED. Retained only for backward compatibility.
This option has no effect. Virtualenv never downloads
pip or setuptools.
--prompt=PROMPT Provides an alternative prompt prefix for this
environment.
--setuptools DEPRECATED. Retained only for backward compatibility.
This option has no effect.
--distribute DEPRECATED. Retained only for backward compatibility.
This option has no effect.
Okay virtualenv is working. Now we need the make to get it.
I'm not that strong when it comes to make but lets try to get virtualenv inside your $PATH. As you have /opt/bin already in there lets create a symlink.
Actually I have no clue where make is searching. the line
Quote:
/bin/sh: virtualenv: command not found
tells that the programm /bin/sh tries to run virtualenv. Which it does not find.
I spotted an error on my side. The ln command should not have worked propably. Instead of /opt/bin it should have bin /opt/bin/virtualenv. So try this please
Quote:
ln -s /opt/local/virtualenv* /opt/bin/virtualenv
After that check with ls -l that the symlink got created.
You could also symlink virtualenv* to the source code directory or /bin or /sbin. I just don't know where make is searching for it. Might want to check the makefile with grep. Something like this
Getting closer. I finally read up the install page you linked in you #1 post. You definitely need phyton-dev as its listed as prerequisites. Also the virtualenv link goes to version 13.*. You have 2.7... Thats a wide gap and might be a problem as well.
I can't find anything specific about the OS your using, so i can't help you with installing. But most distributions have some kind of package manager. Lets see if we can find out the distribution. Please provide the output from the following
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.