Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-05-2017, 10:29 PM
|
#1
|
Member
Registered: Jan 2017
Posts: 30
Rep: 
|
why i got message "setuptools is not installed, Please install it first"?
i was trying setup SEAFILE SERVER at CentOS7,but popup a message
"setuptools is not installed, Please install it first."
but ive installed python-setuptools already
|
|
|
05-06-2017, 06:09 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593
|
Yeah, yum/dnf/whatever they call it now is looking for a specific rpm that you haven't got.
There's some option to rpm that tells you what's required. You are missing something. I don't have rpm here, but it's --requires or something obvious of that nature. Then, for each requirement, rpm -q will tell you if it's installed. There's also database operations if you think rpm is talking bull. Don't you love all this torture? I avoid it like the plague with slackware.
|
|
|
05-06-2017, 08:12 AM
|
#3
|
Member
Registered: Jan 2017
Posts: 30
Original Poster
Rep: 
|
Quote:
Originally Posted by business_kid
Yeah, yum/dnf/whatever they call it now is looking for a specific rpm that you haven't got.
There's some option to rpm that tells you what's required. You are missing something. I don't have rpm here, but it's --requires or something obvious of that nature. Then, for each requirement, rpm -q will tell you if it's installed. There's also database operations if you think rpm is talking bull. Don't you love all this torture? I avoid it like the plague with slackware.
|
how to use "--requires" exactly please? i know that yum stuff awful,however centos7 is the common distribution those vps provide
|
|
|
05-07-2017, 01:28 AM
|
#4
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593
|
I am in hospital here with an Android tablet. I am not in a position to spoon feed you.
Run 'man rpm' or whateveand find out. You are trying to install some rpm. I was thinking of
rpm --requires /path/to/some.rpm, which should return a list of rpms. Then query that list one by one. If you want to run Centos, it is you who will have to learn this basic stuff.
Last edited by business_kid; 05-07-2017 at 01:44 AM.
|
|
|
05-07-2017, 06:50 AM
|
#5
|
Member
Registered: Jan 2017
Posts: 30
Original Poster
Rep: 
|
Quote:
Originally Posted by business_kid
I am in hospital here with an Android tablet. I am not in a position to spoon feed you.
Run 'man rpm' or whateveand find out. You are trying to install some rpm. I was thinking of
rpm --requires /path/to/some.rpm, which should return a list of rpms. Then query that list one by one. If you want to run Centos, it is you who will have to learn this basic stuff.
|
is it
Code:
Checking python on this machine ...
Checking python module: setuptools ... Done.
Checking python module: python-imaging ...
python-imaging is not installed, Please install it first.
On Debian/Ubntu: apt-get install python-imaging
On CentOS/RHEL: yum install python-imaging
Error occured during setup.
Please fix possible problems and run the script again.
[root@localhost /home/seafile-server-6.0.9]#rpm --requires python-imaging
RPM version 4.11.3
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
Usage: rpm [-aKfgpqVcdLilsiv?] [-a|--all] [-f|--file] [-g|--group] [-p|--package] [--pkgid] [--hdrid] [--triggeredby] [--whatrequires]
[--whatprovides] [--nomanifest] [-c|--configfiles] [-d|--docfiles] [-L|--licensefiles] [--dump] [-l|--list]
[--queryformat=QUERYFORMAT] [-s|--state] [--nofiledigest] [--nofiles] [--nodeps] [--noscript] [--allfiles] [--allmatches]
[--badreloc] [-e|--erase <package>+] [--excludedocs] [--excludepath=<path>] [--force] [-F|--freshen <packagefile>+] [-h|--hash]
[--ignorearch] [--ignoreos] [--ignoresize] [-i|--install] [--justdb] [--nodeps] [--nofiledigest] [--nocontexts] [--noorder]
[--noscripts] [--notriggers] [--nocollections] [--oldpackage] [--percent] [--prefix=<dir>] [--relocate=<old>=<new>]
[--replacefiles] [--replacepkgs] [--test] [-U|--upgrade <packagefile>+] [-D|--define 'MACRO EXPR'] [--undefine=MACRO]
[-E|--eval 'EXPR'] [--macros=<FILE:...>] [--noplugins] [--nodigest] [--nosignature] [--rcfile=<FILE:...>] [-r|--root ROOT]
[--dbpath=DIRECTORY] [--querytags] [--showrc] [--quiet] [-v|--verbose] [--version] [-?|--help] [--usage] [--scripts] [--setperms]
[--setugids] [--conflicts] [--obsoletes] [--provides] [--requires] [--info] [--changelog] [--xml] [--triggers] [--last]
[--dupes] [--filesbypkg] [--fileclass] [--filecolor] [--fscontext] [--fileprovide] [--filerequire] [--filecaps]
seems not working
Last edited by rhinolt; 05-07-2017 at 06:51 AM.
|
|
|
05-09-2017, 05:32 AM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593
|
Have you read the rpm man page? I bet you haven't.
Don't post your errors for me to spoon feed you. Go figure with the instructions I have given you
|
|
|
05-10-2017, 10:05 AM
|
#7
|
Member
Registered: Jan 2017
Posts: 30
Original Poster
Rep: 
|
problem solved.tho it is not an rpm issue,thanks anyway
|
|
|
05-11-2017, 05:34 AM
|
#8
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593
|
In order to allow others to solve their problems, post your solution. What was causing the issue?
|
|
|
05-17-2017, 07:06 AM
|
#9
|
Member
Registered: Jan 2017
Posts: 30
Original Poster
Rep: 
|
that setup pack include .sh file,vim shows following:
Code:
hint="\nOn Debian/Ubntu: apt-get install python-setuptools\nOn CentOS/RHEL: yum install python${py26}-distribute"
check_python_module pkg_resources setuptools "${hint}"
hint="\nOn Debian/Ubntu: apt-get install python-imaging\nOn CentOS/RHEL: yum install python${py26}-imaging"
check_python_module PIL python-imaging "${hint}"
hint='\nOn Debian/Ubuntu:\n\nsudo apt-get install python-mysqldb\n\nOn CentOS/RHEL:\n\nsudo yum install MySQL-python'
check_python_module MySQLdb python-mysqldb "${hint}"
these are coordinate packages needed
so i just
yum -y install pkg_resources
yum -y install PIL
yum -y install MySQLdb
then solved,that's all,quite noob issue :P
Last edited by rhinolt; 05-17-2017 at 07:08 AM.
|
|
|
All times are GMT -5. The time now is 01:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|