Question : SAMBA on REDHAT

i am having an problem of installing samba on redhat enterprise server.
This is my eval machine.
please see the attached for the error.
 
 
 


when i ran: rpm -ivh lib*.rpm
it says:  conflicts with file from package libsbmclient-3.0.33-3.28.el5.i386

Answer : SAMBA on REDHAT

As in your other Q, you could do some optimizing by stopping the iteration when you encounter a distance that is larger than the one we're checking for (since no equal one will follow from then), e.g.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
size_t printAllEqual(const vector<StudentAttempt>& v, const StudentAttempt& sa, stringstream& ss ) {

  vector<StudentAttempt>::const_iterator i = v.begin();
  size_t sz = 0;
  bool bFirst = true;

  while (i != v.end()) {

    if(isDistEqual(*i,sa)) {
    
      if (!bFirst) ss << ',';
      ss << i->studentName;
      ++sz;

      // we can stop here when encountering distances
      // larger than the one we're since the vector is
      // sorted in ascending order (if not, this would cause errors)
      // Higher distances will never equal ours
      if (i->distance > sa.distance) break;
    }

    ++i; 
    bFirst = false;
  }

  return sz;
}
Random Solutions  
 
programming4us programming4us